public HttpResponseMessage ViewProfile(int agency_id)
        {
            var result = _agencyDomain.ViewProfile(agency_id);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
Ejemplo n.º 2
0
        public ActionResult GetAgencyDetail(int agency_id)
        {
            var agencyDetail = _agencyDomain.ViewProfile(agency_id);

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