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