public IActionResult GetAll() { try { var result = _PatientServices.GetAll(); return(new ObjectResult(result)); } catch (System.Exception ex) { return(BadRequest(ex.Message)); } }