Example #1
0
        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;
        }
Example #2
0
        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;
        }