public void Delete(int ID) { Vrem pac = db15.Vrem.Where(c => c.ID == ID).FirstOrDefault(); db15.Vrem.DeleteOnSubmit(pac); db15.SubmitChanges(); }
public void Edit(int ID, string Den, string VremN, string VremK) { Vrem pac = db15.Vrem.Where(c => c.ID == ID).FirstOrDefault(); pac.Den = Den; pac.VremN = VremN; pac.VremK = VremK; db15.SubmitChanges(); }
public void ADD(string Den, string VremN, string VremK) { Vrem pac = new Vrem(); pac.Den = Den; pac.VremN = VremN; pac.VremK = VremK; db15.Vrem.InsertOnSubmit(pac); db15.SubmitChanges(); }