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

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

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