示例#1
0
        public JsonResult Get(string sessionGuid)
        {
            var    returnDataObj     = new Dictionary <string, Dictionary <string, object> >();
            var    qryResult         = new Dictionary <int, Dictionary <string, object> >();
            var    spd               = new StoredProc();
            var    procParams        = new Dictionary <string, string>();
            string transactionUserIP = Request.HttpContext.Connection.RemoteIpAddress.ToString();

            procParams.Add("@SESSION_GUID", sessionGuid);
            qryResult = spd.RunStoredProc("evidencebx.USERS_SELECT_SELF", procParams);

            return(Json(qryResult[0]["USER_STAMP"]));

            // GET SESSION INFO


            /*
             * string userStamp = string.Empty;
             * using (sakuraDbEntities _db = new sakuraDbEntities())
             * {
             *  ObjectResult<USERS_SELECT_SELF_Result> userResults = _db.USERS_SELECT_SELF(sessionGuid);
             *  foreach (var user in userResults)
             *  {
             *      userStamp = user.USER_STAMP;
             *  }
             * }
             */
        }
示例#2
0
        public JsonResult Get(ControllerContext context)
        {
            var returnDataObj = new Dictionary <string, Dictionary <int, object> >();
            var spd           = new StoredProc();

            returnDataObj.Add("AGENCIES", spd.RunStoredProc("evidencebx.AGENCIES_SELECT", null));
            return(Json(returnDataObj));
        }
示例#3
0
        public JsonResult Get(string agency_guid)
        {
            var returnDataObj = new Dictionary <string, Dictionary <int, object> >();
            var spd           = new StoredProc();
            var procParams    = new Dictionary <string, string>();

            procParams.Add("@AGENCY_GUID", agency_guid);
            returnDataObj.Add("AGENCY_USERS", spd.RunStoredProc("evidencebx.AGENCY_USERS_SELECT", procParams));
            return(Json(returnDataObj));
        }