Пример #1
0
        public IEnumerable <TaskGroupModel> GetAllTaskGroups(TaskGroupFilter filter)
        {
            bool filterByName = false;

            if (!string.IsNullOrEmpty(filter.Name))
            {
                filterByName = true;
            }
            return(GetTask_QRY().Where(x =>
                                       (filterByName ? x.GroupName.Contains(filter.Name) : true)
                                       ).ToList());
        }
Пример #2
0
 public List <TaskGroupModel> GetTaskGroups(TaskGroupFilter filter)
 {
     return(TaskGroupRepo.GetAllTaskGroups(filter).ToList());
 }