Exemple #1
0
        public void AddAdobeSignLog(string action, string request, string response)
        {
            using (var context = new CreditAppContext())
            {
                AdobeSignLogEntity entity = new AdobeSignLogEntity();
                entity.Action   = action;
                entity.Request  = request;
                entity.Response = response;

                context.AdobeSignLogs.Add(entity);
                context.SaveChanges();
            }
        }
Exemple #2
0
        public void AddDistributorLogWithComments(int creditDataId, string status, string comments)
        {
            using (var context = new CreditAppContext())
            {
                DistributorLogEntity entity = new DistributorLogEntity();
                entity.CreditDataId = creditDataId;
                entity.Status       = status;
                entity.Comments     = comments;
                entity.LastUpdate   = DateTime.Now;

                context.DistributorLogs.Add(entity);
                context.SaveChanges();
            }
        }
Exemple #3
0
 public CreditAppRepository()
 {
     this._context = new CreditAppContext();
 }