Esempio n. 1
0
 public YearViewModel GetYears()
 {
     return(new YearViewModel
     {
         Years = _yearRepository.GetYears()
     });
 }
        public async Task <IActionResult> getYears()
        {
            ICollection <Year> years = await _repo.GetYears();

            return(Ok(years));
        }
        public List <Year> GetYears()
        {
            var years = _yearRepository.GetYears().ToList();

            return(years);
        }