public Organisation Delete(int OrganisationId) { var organisation = Context.Set <Organisation>().Find(OrganisationId); if (organisation == null) { return(organisation); } Context.Set <Organisation>().Remove(organisation); Context.SaveChanges(); return(organisation); }
public TreatmentRecords Delete(int TreatmentRecordsId) { var treatmentRecords = Context.Set <TreatmentRecords>().Find(TreatmentRecordsId); if (treatmentRecords == null) { return(treatmentRecords); } Context.Set <TreatmentRecords>().Remove(treatmentRecords); Context.SaveChanges(); return(treatmentRecords); }
public Patient Delete(int PatientId) { var patient = Context.Set <Patient>().Find(PatientId); if (patient == null) { return(patient); } Context.Set <Patient>().Remove(patient); Context.SaveChanges(); return(patient); }
public Login Delete(int LoginId) { var login = Context.Set <Login>().Find(LoginId); if (login == null) { return(login); } Context.Set <Login>().Remove(login); Context.SaveChanges(); return(login); }
public Disease Add(Disease disease) { Context.Set <Disease>().Add(disease); Context.SaveChanges(); return(disease); }
public Role Add(Role role) { Context.Set <Role>().Add(role); Context.SaveChanges(); return(role); }
public TreatmentRecords GetTreatmentRecords(int TreatmentRecordsId) { return(Context.Set <TreatmentRecords>().Find(TreatmentRecordsId)); }
public Occupation Add(Occupation occupation) { Context.Set <Occupation>().Add(occupation); Context.SaveChanges(); return(occupation); }
public Address Add(Address address) { Context.Set <Address>().Add(address); Context.SaveChanges(); return(address); }