public IHttpActionResult AddPatientDisease(Models.MedicalRecordBindingModel model) { try { var result = _patientData.AddPatientDisease(model.IdPatient, Convert.ToDateTime(model.StartTime), model.Disease); return(Ok(result)); } catch (Exception e) { Console.WriteLine(e); throw; } }