public IHttpActionResult CreatePatient(PatientModel model) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _patientHelper.CreatePatient(model); return(Ok()); }