public void Delete(string Name) { Uslugi pac = db13.Uslugi.Where(c => c.Name == Name).FirstOrDefault(); db13.Uslugi.DeleteOnSubmit(pac); db13.SubmitChanges(); }
public void Edit(int ID, string Name, int Cena, string Ed) { Uslugi pac = db13.Uslugi.Where(c => c.ID == ID).FirstOrDefault(); pac.Name = Name; pac.Cena = Cena; pac.Ed = Ed; db13.SubmitChanges(); }
public void ADD(string Name, int Cena, string Ed) { Uslugi pac = new Uslugi(); pac.Name = Name; pac.Cena = Cena; pac.Ed = Ed; db13.Uslugi.InsertOnSubmit(pac); db13.SubmitChanges(); }