Beispiel #1
0
        protected virtual Task <IEnumerable <Developer> > GetSetOrAll(DeveloperFilterModel filter)
        {
            if (filter.Set.Value == DeveloperSet.Associated)
            {
                return(_developerRepo.GetAssignedTo(
                           projName: Decode(filter.ProjectContextUrl),
                           keywords: filter.Keywords,
                           order: filter.GetOrderModel()));
            }

            if (filter.Set.Value == DeveloperSet.NonAssociated)
            {
                return(_developerRepo.GetAssignableTo(
                           projName: Decode(filter.ProjectContextUrl),
                           keywords: filter.Keywords,
                           order: filter.GetOrderModel()));
            }

            return(_developerRepo.Get(filter.Keywords, filter.GetOrderModel()));
        }