Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

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