示例#1
0
 public TblUser UpdateUser(TblUser tblUser)
 {
     dbContext.Entry(tblUser).State = EntityState.Modified;
     dbContext.SaveChanges();
     return(tblUser);
 }
示例#2
0
 public TblUser DeleteUser(TblUser tblUser)
 {
     _context.Entry(tblUser).State = EntityState.Deleted;
     _context.SaveChanges();
     return(tblUser);
 }