public Restaurant UpdateRestaurant(Restaurant updateRestaurant) { _context.Attach(updateRestaurant).State = EntityState.Modified; _context.SaveChanges(); return(updateRestaurant); }