public async Task <ActionResult> DeleteAsync(string id) { try { if (id == null) { return(BadRequest()); } await patientManager.DeleteAsync(id); return(new OkResult()); } catch (Exception ex) { //Log(ex.Message); return(new BadRequestResult()); } }
public async Task <ActionResult> DeleteAsync(string id) { try { if (id == null) { return(BadRequest()); } await patientManager.DeleteAsync(id); return(new OkResult()); } catch (Exception ex) { //Log(ex.Message); return(new BadRequestResult()); } }