public TblUser UpdateUser(TblUser tblUser) { dbContext.Entry(tblUser).State = EntityState.Modified; dbContext.SaveChanges(); return(tblUser); }
public TblUser DeleteUser(TblUser tblUser) { _context.Entry(tblUser).State = EntityState.Deleted; _context.SaveChanges(); return(tblUser); }