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