예제 #1
0
        public bool Excluir(StatusEvento model)
        {
            using (var db = new SistemaDeEventosContext())
            {
                db.Entry(model).State = EntityState.Deleted;

                db.SaveChanges();

                return(true);
            }
        }
예제 #2
0
        public StatusEvento Update(StatusEvento model)
        {
            using (var db = new SistemaDeEventosContext())
            {
                db.Entry(model).State = EntityState.Modified;

                db.SaveChanges();

                return(model);
            }
        }