public void AddResturant(Resturant ResturantToAdd) { db.Add(ResturantToAdd); }
public Restaurant Add(Restaurant newRestaurant) { _context.Add(newRestaurant); // SQL Server will generate the Id value for the restaurant. _context.SaveChanges(); // Saves changes to the database. return(newRestaurant); }
public void Add(Restaurant restaurant) { _context.Add(restaurant); _context.SaveChanges(); }