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