Base solution for your next web application

Activities of "sasailic"

Question

GET Requests works correctly, but when i try to post something i get "message=An internal error occurred during your request!" Error. This code works correctly MVC Web Api project, but not works on boilerplate.

public HttpResponseMessage Post(Contact contact)
        {
            contactRepository.SaveContact(contact);

            var response = Request.CreateResponse(HttpStatusCode.Created, contact);

            return response;
        }
Showing 1 to 1 of 1 entries