public ActionResult GetReport(string name) { try { return(Ok(ipatient.GetReport(name))); } catch (Exception e) { return(BadRequest(e)); } }