public async Task <dynamic> GetUser(string userId, string ownerID) { List <SEC_User> obUser = null; await Task.Run(() => _userService.GetAllUser(userId, ownerID, out obUser)); var result = obUser.Select(x => new { UserID = x.UserID, UserPassword = StringEncription.Decrypt(x.UserPassword, true), OwnerLevelID = x.OwnerLevelID, LevelName = x.LevelName, OwnerID = x.OwnerID, OwnerName = x.OwnerName, RoleTitle = x.RoleTitle, RoleID = x.RoleID, EmployeeID = x.EmployeeID, UserFullName = x.UserFullName, UserDesignation = x.UserDesignation, JobLocation = x.JobLocation, UserNo = x.UserNo, UserName = x.UserName, PermissionLevel = x.PermissionLevel, AccessOwnerLevel = x.AccessOwnerLevel, AccessDataLevel = x.AccessDataLevel, DocClassification = x.DocClassification, SecurityStatus = x.SecurityStatus, DateLimit = string.Format(x.DateLimit, "dd/MM/yyyy"), DefaultServer = x.DefaultServer, IntMailAddress = x.IntMailAddress, IntmailStatus = x.IntmailStatus, ExtMailAddress = x.ExtMailAddress, ExtMailStatus = x.ExtMailStatus, UserPicture = x.UserPicture, UserLevelID = x.UserLevelID, Remarks = x.Remarks, ClassificationLevel = x.ClassificationLevel, SetOn = x.SetOn, SupervisorLevel = x.SupervisorLevel, MessageStatus = x.MessageStatus, ContactNo = x.ContactNo, SupervisorLevelName = x.SupervisorLevelName, AccessDataLevelName = x.AccessDataLevelName, UserLevelName = x.UserLevelName, ClassificationLevelName = x.ClassificationLevelName, DocClassificationName = x.DocClassificationName, Status = x.Status }); return(Json(new { Msg = "", result }, JsonRequestBehavior.AllowGet)); }
public static string Decrypt(string TextToBeDecrypted) { return(StringEncription.Decrypt(TextToBeDecrypted, Key)); }