Esempio n. 1
0
 public async Task <List <SpecialityInfoDto> > GetAllSpecialitys(string departmentId)
 {
     using (IDAL.ISpecialityService specialityService = new SpecialityService())
     {
         return(await specialityService.GetAllAsync().Where(m => m.DepartmentId == departmentId).Select(m => new Dto.SpecialityInfoDto()
         {
             SpecialityId = m.SpecialityId,
             SpecialityName = m.SpecialityName
         }).ToListAsync());
     }
 }