Example #1
0
 public List<StatusParameter> GetListStates()
 {
     List<StatusParameter> list = new List<StatusParameter>();
     StatusParameterRepository status = new StatusParameterRepository();
     list = status.GetAllStatusParameter().ToList();
     return list;
 }
Example #2
0
        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;
        }