public bool savefivesb(A5dot1Tab2 a5dot1Tab2) { //A5dot1Tab2 temp = new A5dot1Tab2(); using (var db = base.NewDB()) { try { //var E = db.A5dot1Tab2.Where(a => a.sbCode == a5dot1Tab2.sbCode).First(); //if (E!=null) //{ // a5dot1Tab2.notGoodContents += E.notGoodContents; // a5dot1Tab2.timesNotGood += 1; // db.SaveChanges(); //} //else //{ db.A5dot1Tab2.Add(a5dot1Tab2); db.SaveChanges(); //} return(true); } catch (Exception e) { return(false); } } }
public bool savefivesb(A5dot1Tab2 a5dot1Tab2) { WorkFlowTables wft = new WorkFlowTables(); try { wft.savefivesb(a5dot1Tab2); return(true); } catch { return(false); } }