Esempio n. 1
0
        public async Task <ActionResult <County> > Get(int id)
        {
            County county = await _countyRepository.Get(id);

            return(county != null ? county : NotFound());
        }
Esempio n. 2
0
        public IActionResult Get(int id)
        {
            var counties = repo.Get(id);

            return(Ok(counties));
        }
Esempio n. 3
0
 /// <summary>
 /// Returns a county
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public County Get(int id)
 {
     return(_countyRepository.Get(id));
 }