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

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

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