cannot implicitly convert type 'system.net.http.httpresponsemessage' to 'system.web.httpresponse'
I am creating a web service in visual studio 2015 using MySQL databases. I want implement only a GET method using HTTP. Now when I am doing it I cam accross and error. Which is cannot implicitly convert type 'system.net.http.httpresponsemessage' to 'system.web.httpresponse' The point where it comes is below public HttpResponse Get() { try { return Request.CreateResponse(HttpStatusCode.Found, mEntities.meters_info_dev.ToList()); } catch (Exception) { return Request.CreateErrorResponse(HttpStatusCode.NotFound, "No Data found"); } } Below is the image I couldn't find the solution for it. Any help
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.