public HttpResponseMessage ApproveRetailer(int retailerid, string retaileremail) { try { entities.proc_Approve_Retailer(retailerid, retaileremail); entities.SaveChanges(); return(Request.CreateResponse(HttpStatusCode.OK, "Accepted")); } catch (Exception) { return(Request.CreateResponse(HttpStatusCode.OK, "Error")); } }