Exemple #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();
            }
        }