Exemplo n.º 1
0
        public void DeleteUser(User user)
        {
            CapaNavDocDal dal = new CapaNavDocDal();

            dal.Entry(user).State = EntityState.Deleted;
            dal.SaveChanges();
        }
Exemplo n.º 2
0
        public User UpdateUser(User user)
        {
            CapaNavDocDal dal = new CapaNavDocDal();

            dal.Entry(user).State = EntityState.Modified;
            dal.SaveChanges();
            return(user);
        }