/// <summary> /// Get the full list of specialties /// </summary> /// <returns></returns> public List <Specialty> GetSpecialties() { List <SQL.Specialties> spDb = _specialtyRepository.GetAll().ToList(); List <Specialty> spDom = new List <Specialty>(); foreach (SQL.Specialties sp in spDb) { spDom.Add(new Specialty { Id = sp.Id, SpecialtyName = sp.SpecialtyName }); } return(spDom); }
public async Task <List <Specialty> > GetSpecialties() { return(await _specialtyRepository.GetAll()); }
// GET: Specialties public IActionResult Index() { var specialty = _specialtyRepository.GetAll(); return(View(specialty)); }
public IEnumerable <Specialty> GetAll() { return(_specialtyRepository.GetAll()); }