public string AddGame(string name, string description, float price) // metoda dodajaca gre do tabeli gry { GryMZ NewGame = new GryMZ(); NewGame.nazwa = name; NewGame.opis = description; NewGame.cena = price; database.GryMZs.InsertOnSubmit(NewGame); try { database.SubmitChanges(); return("Pomyślnie dodano grę"); } catch (Exception e) { throw e; } }
partial void UpdateGryMZ(GryMZ instance);
partial void DeleteGryMZ(GryMZ instance);
partial void InsertGryMZ(GryMZ instance);