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()); }
public List <TaskGroupModel> GetTaskGroups(TaskGroupFilter filter) { return(TaskGroupRepo.GetAllTaskGroups(filter).ToList()); }