public async Task <ActionResult <County> > Get(int id) { County county = await _countyRepository.Get(id); return(county != null ? county : NotFound()); }
public IActionResult Get(int id) { var counties = repo.Get(id); return(Ok(counties)); }
/// <summary> /// Returns a county /// </summary> /// <param name="id"></param> /// <returns></returns> public County Get(int id) { return(_countyRepository.Get(id)); }