public ActionResult <List <PatientModel> > Get([FromQuery] int[] ids) { try { if (ids.Length == 0) { return(_business.GetAll()); } else { return(_business.Get(ids)); } } catch (Exception ex) { _logging.Log(LogSeverity.Error, ex.ToString()); throw; } }
public async Task <IActionResult> Get() { return(Ok(await _patientBusness.Get())); }