Esempio n. 1
0
 public void AddEndorsementStatusRejDAL(string policynum)
 {
     try
     {
         Endorsement end = sq.Endorsements.Where(x => x.Policynumber == policynum).OrderByDescending(x => x.TransactionId).First();
         end.EndorsementStatus = "Changes Rejected";
         sq.SaveChanges();
     }
     catch (Exception)
     {
         throw;
     }
 }
Esempio n. 2
0
        public bool AddEndorsementDAL(Endorsement end)
        {
            bool add = false;

            try
            {
                sq.Endorsements.Add(end);
                sq.SaveChanges();
                add = true;
            }
            catch (Exception)
            {
                throw;
            }
            return(add);
        }