Пример #1
0
 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;
     }
 }
Пример #2
0
 public async Task <IActionResult> Get()
 {
     return(Ok(await _patientBusness.Get()));
 }