public void Delete(Guid id) { var patient = GentuUow.Repository <Patients>().FindBy(x => x.Id == id).FirstOrDefault(); if (patient != null) { GentuUow.RegisterDeleted <Patients>(patient); GentuUow.Commit(); } }
public void Delete(Guid id) { var practice = GentuUow.Repository <Practices>().FindBy(x => x.Id == id).FirstOrDefault(); if (practice != null) { GentuUow.RegisterDeleted <Practices>(practice); GentuUow.Commit(); } }
public Patients Get(Guid id) => GentuUow.Repository <Patients>().SingleOrDefault(t => t.Id == id);
public IEnumerable <Patients> Get() { return(GentuUow.Repository <Patients>().All()); }
public Practices Get(Guid id) => GentuUow.Repository <Practices>().SingleOrDefault(t => t.Id == id);
public IEnumerable <Practices> Get() { return(GentuUow.Repository <Practices>().All()); }