/// <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(); } }
/// <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)); }
/// <summary> /// Fetch Selected User Information From the Userlogs table /// </summary> /// <param name="UserID">Long UserID </param> /// /// <param name="CurrentDate">Date time paramenter</param> /// <returns>List of UserLogs of type UserLogCustom</returns> public List <cstAutditLog> GetUserLogAll(Guid UserID, DateTime DateOFLog) { cmbAuditLog command = new cmbAuditLog(); return(command.GetUserLog(UserID, DateOFLog)); }
/// <summary> /// Fetch Selected User Information From the Userlogs table /// </summary> /// <param name="UserID">Long UserID </param> /// <returns>List of UserLogs of type UserLogCustom</returns> public List <cstAutditLog> GetUserLogAll(Guid UserID) { cmbAuditLog command = new cmbAuditLog(); return(command.GetUserLog(UserID)); }
/// <summary> /// Update the UserLogs information /// </summary> /// <param name="lsUserLog">Updated User Information list </param> /// <param name="UserID">User Id (Long)</param> /// <returns>Boolean Value</returns> public Boolean UpdateUserLog(List <cstAutditLog> lsUserLogInfo, Guid UserID) { cmbAuditLog command = new cmbAuditLog(); return(command.UpdateUserLog(lsUserLogInfo, UserID)); }
/// <summary> /// UserLogs table Save method /// </summary> /// <param name="lsUserLog">list Of user Information(UserCustom)</param> /// <returns>Boolen true on success else false</returns> public Boolean SaveUserLog(List <cstAutditLog> lsUserLogInfo) { cmbAuditLog command = new cmbAuditLog(); return(command.SaveUserLog(lsUserLogInfo)); }