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