public void Delete(int id) { jurnaldopuslug pac = dbjurnaldopuslug.jurnaldopuslug.Where(c => c.id == id).FirstOrDefault(); dbjurnaldopuslug.jurnaldopuslug.DeleteOnSubmit(pac); dbjurnaldopuslug.SubmitChanges(); }
public void Edit(int id, int iddopuslug, int idclienta, int idjurnalanomera) { jurnaldopuslug pac = dbjurnaldopuslug.jurnaldopuslug.Where(c => c.id == id).FirstOrDefault(); pac.idclienta = idclienta; pac.iddopuslug = iddopuslug; pac.idjurnalanomera = idjurnalanomera; dbjurnaldopuslug.SubmitChanges(); }
public void ADD(int iddopuslug, int idclienta, int idjurnalanomera) { jurnaldopuslug pac = new jurnaldopuslug(); pac.idclienta = idclienta; pac.iddopuslug = iddopuslug; pac.idjurnalanomera = idjurnalanomera; dbjurnaldopuslug.jurnaldopuslug.InsertOnSubmit(pac); dbjurnaldopuslug.SubmitChanges(); }