public HttpResponseMessage ViewProfile(int agency_id) { var result = _agencyDomain.ViewProfile(agency_id); return(Request.CreateResponse(HttpStatusCode.OK, result)); }
public ActionResult GetAgencyDetail(int agency_id) { var agencyDetail = _agencyDomain.ViewProfile(agency_id); return(Json(new { result = agencyDetail }, JsonRequestBehavior.AllowGet)); }