public void Update(UserInfoModel userInfoModel) { db.Entry(userInfoModel).State = EntityState.Modified; }
public T Update(T entity) { _dbContext.Entry(entity).State = EntityState.Modified; _dbContext.SaveChanges(); return(entity); }
//Update Client public Client UpdateUser(Client user) { _db.Entry(user).State = EntityState.Modified; _db.SaveChanges(); return(user); }
public void Update(T item) { _userDbContext.Entry(item).State = EntityState.Modified; _userDbContext.SaveChanges(); }
public async Task UpdateAsync(User user) { context.Entry(user).State = EntityState.Modified; await context.SaveChangesAsync(); }