Example #1
0
 public Restaurant Update(Restaurant restaurant)
 {
     _dbContext.Attach(restaurant).State = EntityState.Modified;
     _dbContext.SaveChanges();
     return(restaurant);
 }