public Employee UpdateEmployee(Employee employee) { dbContext.Entry(employee).State = EntityState.Modified; dbContext.SaveChanges(); return(employee); }
public async Task <Item> UpdateItem(Item Item) { dbContext.Entry(Item).State = EntityState.Modified; dbContext.SaveChanges(); return(Item); }