public Boolean AddAssumption(Assumptions ass) { Boolean rv = false; try { db.Assumptions.Add(ass); db.SaveChanges(); rv = true; } catch (Exception ex) { throw new AustException(ErrorMessages.ErrorAddingAssumptions, ex); } return rv; }
public Boolean UpdateAssumption(Assumptions ass) { Boolean rv = false; try { db.Entry(ass).State = EntityState.Modified; db.SaveChanges(); rv = true; } catch (Exception ex) { throw new AustException(ErrorMessages.ErrorUpdatingAssumptions, ex); } return rv; }