예제 #1
0
        /// <summary>
        /// User Inforamation set  To class object.
        /// </summary>
        private void _setUserInfo()
        {
            cmdUser     _user   = new cmdUser();
            cmbAuditLog command = new cmbAuditLog();

            UserInfo = _user.GetUserMaster(UserID)[0];
            if (UserInfo != null)
            {
                //Set User last login;
                LastLoginTime = command.UserLastLogin(UserID);
                //Set User Permissions
                Permissions = _user.GetUserMaster(UserID)[0].Permission;
                //Set Role of user
                _setRole();
            }
        }
예제 #2
0
        /// <summary>
        /// Last User login datetime.
        /// </summary>
        /// <param name="UserID">Long UserID</param>
        /// <returns>DateTime </returns>
        public DateTime UserLastLogin(Guid UserID)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.UserLastLogin(UserID));
        }