public HttpResponseMessage UpdateProfile(AgencyUpdateAPIViewModel model) { var result = _agencyDomain.UpdateProfile(model); return(Request.CreateResponse(HttpStatusCode.OK, result)); }
public ActionResult UpdateAgency(AgencyUpdateAPIViewModel model) { var result = _agencyDomain.UpdateProfile(model); return(Json(new { result }, JsonRequestBehavior.AllowGet)); }