public dynamic GetUsersList(JObject Obj) { AdminUserListFilters filter = Obj.ToObject <AdminUserListFilters>(); int total = 0; AdminUserVal re = new AdminUserVal(); re.AdminSocialAccountData = _adminService.GetUsersList(filter.limit, filter.offset, filter.order, filter.sort, filter.FirstName, filter.LastName, filter.EmailId, filter.Photo, out total); var result = new { total = total, rows = re.AdminSocialAccountData, }; return(result); }
public dynamic GetEndUsersList(JObject Obj) { AdminUserListFilters filter = Obj.ToObject <AdminUserListFilters>(); int total = 0; AdminUserVal re = new AdminUserVal(); re.AdminSocialAccountData = _adminService.GetEndUsersList(filter.limit, filter.offset, filter.order, filter.sort, filter.FirstName, filter.LastName, filter.EmailId, filter.Photo, filter.userType, filter.Roles, filter.industryId, out total); //foreach (var password in re.AdminSocialAccountData.ToList()) //{ // var decryptedPassword = smartData.Common.CommonFunction.Decrypt(re.AdminSocialAccountData.FirstOrDefault().Password); // password.Password = decryptedPassword; //} var result = new { total = total, rows = re.AdminSocialAccountData, }; return(result); }