Exemple #1
0
        public IActionResult DeletePatient(String id)
        {
            var result = _service.DeletePatient(id);

            if (result == null)
            {
                return(BadRequest());
            }
            else if (result.Equals("Nie ma takiego pacjenta"))
            {
                return(BadRequest(result));
            }
            else if (result.Equals("Usunieto pacjenta"))
            {
                return(Ok(result));
            }
            return(BadRequest());
        }
 public IActionResult DeletePatient(string id)
 {
     return(Ok(MedicamentsService.DeletePatient(id)));
 }