コード例 #1
0
        public HttpResponseMessage ViewProfile(int agency_id)
        {
            var result = _agencyDomain.ViewProfile(agency_id);

            return(Request.CreateResponse(HttpStatusCode.OK, result));
        }
コード例 #2
0
        public ActionResult GetAgencyDetail(int agency_id)
        {
            var agencyDetail = _agencyDomain.ViewProfile(agency_id);

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