示例#1
0
        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();
            }
        }
示例#3
0
 public Patients Get(Guid id) => GentuUow.Repository <Patients>().SingleOrDefault(t => t.Id == id);
示例#4
0
 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());
 }