Beispiel #1
0
 public IActionResult Delete(int id)
 {
     try
     {
         if (_dbService.GetDoctor(id) == null)
         {
             return(NotFound("Selected doctor doesn't exist"));
         }
         return(Ok(_dbService.DeleteDoctors(id)));
     }
     catch (Exception e)
     {
         return(BadRequest("Exception: " + e.Message + "\n" + e.StackTrace));
     }
 }