public string InsertDetail(Detail_Patient_Doctor detail) { try { this.db.Set <Detail_Patient_Doctor>().Add(detail); this.db.SaveChanges(); return("Datos Insertados Correctamente"); } catch (Exception ex) { throw new Exception("Por favor validar, la informaciĆ³n no fue insertada", ex); } }
public string CreateDetail([FromBody] Detail_Patient_Doctor model) { return(_detailPatientDoctorService.InsertDetail(model)); }
public string InsertDetail(Detail_Patient_Doctor dto) { return(_detailPatientDoctor.InsertDetail(dto)); }