Base solution for your next web application

Activities of "sasailic"

Answer

Exception Handler returns this error message: "Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details."

Answer

It doesn't work :cry: Do you have a sample for POST request working on boiler template?

Answer

Yes but I couldn't find anything :|

I attached my log file, I cleaned up it before restart project. Logs.rar

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 4 of 4 entries