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