public bool SaveChangesAtbildes(string jautajums, string atbilde, string pareizaAtbilde, int punkts, int testAtbildesID) { var saveQueryChangesAtbildes = from ch in db.JautājumuAtbildes where ch.TestaAtbildesID = testAtbildesID select ch; var saglabaDatus2 = new JautājumuAtbilde { Jautājums = jautajums, Atbilde = atbilde, PareizāAtbilde = pareizaAtbilde, Punkts = punkts, TestaAtbildesID = testAtbildesID }; db.JautājumuAtbildes.InsertOnSubmit(saglabaDatus2); db.SubmitChanges(); return true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)