public IActionResult Get(int id) { var hospital = _hospitalRepository.GetById(id); if (hospital == null) { return(NotFound()); } return(Ok(hospital)); }
public IActionResult Get(int id) { var hospital = _hospitalRepository.GetById(id); if (hospital == null) { return(NotFound()); } return(Ok(hospital)); }