Ejemplo n.º 1
0
        public static ClsReturnValues setUserSessionHistory(ClsUserSessionHistory item)
        {
            ClsReturnValues obj = new ClsReturnValues();

            try
            {
                using (var db = new tdoEntities())
                {
                    obj = db.uspAddEditUserSessionHistory(item.sessionID, item.userID, item.logoutDate, item.isActive, item.deviceType, item.deviceName, item.browser).FirstOrDefault();
                }
            }
            catch (Exception ex) { obj.Response = ex.Message; obj.IsSuccess = false; obj.ID = 0; }
            return(obj);
        }
Ejemplo n.º 2
0
 public static ClsReturnValues setUserSessionHistory(ClsUserSessionHistory item)
 {
     ClsReturnValues obj = new ClsReturnValues();
     try
     {
         using (var db = new tdoEntities())
         {
             obj = db.uspAddEditUserSessionHistory(item.sessionID, item.userID, item.logoutDate, item.isActive, item.deviceType, item.deviceName, item.browser).FirstOrDefault();
         }
     }
     catch (Exception ex) { obj.Response = ex.Message; obj.IsSuccess = false; obj.ID = 0; }
     return obj;
 }