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

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

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

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