public HttpResponseMessage UpdateProfile(AgencyUpdateAPIViewModel model)
        {
            var result = _agencyDomain.UpdateProfile(model);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
示例#2
0
        public ActionResult UpdateAgency(AgencyUpdateAPIViewModel model)
        {
            var result = _agencyDomain.UpdateProfile(model);

            return(Json(new { result }, JsonRequestBehavior.AllowGet));
        }