Esempio n. 1
0
        public void Delete(int HospitalId)
        {
            var hospital = Context.Hospitals.Where(c => c.HospitalId == HospitalId).FirstOrDefault();

            Context.Entry(hospital).State = EntityState.Deleted;
            Context.SaveChanges();
        }