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

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

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