public List <User> GetAll() { List <User> alluserdata = CRUD.GetAll(); foreach (User obj in alluserdata.ToList()) { if (obj.Active == 0) { alluserdata.Remove(obj); } } return(alluserdata); }
public List <UserDTO> GetAllUsers() { UserCRUD user = new UserCRUD(); return(user.GetAll()); }