public bool Update(Defect original, Defect updated) { _context.Entry(original).CurrentValues.SetValues(updated); return true; }
public bool Insert(Defect defect) { try { _context.Defects.Add(defect); return true; } catch { return false; } }
public bool Update(Defect original, Defect updated) { _context.Entry(original).CurrentValues.SetValues(updated); return true; }
public bool Insert(Defect defect) { try { _context.Defects.Add(defect); return true; } catch { return false; } }