コード例 #1
0
        public ActionResult GetInfo()
        {
            var userid = _da.GetItemById(AgencyUserId);
            var agengy = _agencyDa.GetItemById(userid.AgencyID);

            return(Json(agengy));
        }
コード例 #2
0
        public ActionResult GetProfile()
        {
            var obj = _agencyDa.GetItemById(CustomerId);

            return(Json(new BaseResponse <AgencyItem> {
                Code = 200, Data = obj
            }, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        public ActionResult GetItemById(string key, int id)
        {
            var obj = key != Keyapi ? new AgencyItem() : _da.GetItemById(id);

            return(Json(obj, JsonRequestBehavior.AllowGet));
        }