Ejemplo n.º 1
0
 public async Task <IEnumerable <AccessGroup> > GetByApplicationDepartment(Guid applicationId, int departmentId)
 {
     if (departmentId == 0)
     {
         var spec = new AccessGroupSpecification(applicationId);
         return(await GetAsync(spec));
     }
     else
     {
         var spec = new AccessGroupSpecification(applicationId, departmentId);
         return(await GetAsync(spec));
     }
 }
Ejemplo n.º 2
0
        public async Task <AccessGroup> GetById(int id)
        {
            var spec = new AccessGroupSpecification(id);

            return((await GetAsync(spec)).FirstOrDefault());
        }
Ejemplo n.º 3
0
        public async Task <IEnumerable <AccessGroup> > GetAll()
        {
            var spec = new AccessGroupSpecification();

            return(await GetAsync(spec));
        }