Example #1
0
        public static AdminUserModel GetAdminUserModelFromSession()
        {
            AdminUserModel result = null;

            try
            {
                result = HttpContext.Current.Session[GetKey()] as AdminUserModel;
            }
            catch (HttpUnhandledException)
            {
                RemoveAdminUserModelFromSession();
            }

            return(result);
        }
Example #2
0
        public static AdminUserModel ToAdminUserModel(DataTable dt)
        {
            var result = new AdminUserModel(dt.Rows[0]["UserEmailID"] as String, dt.Rows[0]["FirstName"] as String, dt.Rows[0]["LastName"] as String);

            return(result);
        }