public List<aspnet_Users> GetListUsers() { List<aspnet_Users> list = new List<aspnet_Users>(); aspnet_UsersRepository user = new aspnet_UsersRepository(); list = user.GetAllaspnet_Users().ToList(); return list; }
public IList<TaskModel> GetTaskList() { TaskRepository taskRepository = new TaskRepository(); StatusParameterRepository statusParameterRepository = new StatusParameterRepository(); aspnet_UsersRepository aspnetUserRes = new aspnet_UsersRepository(); IList<TaskModel> list = (from x in taskRepository.GetAllTask() join y in statusParameterRepository.GetAllStatusParameter() on x.Status equals y.Id join z in aspnetUserRes.GetAllaspnet_Users() on x.AssignedTo equals z.UserId select new TaskModel(x) { StatusName = y.Name, UserName = z.UserName }).ToList(); return list; }