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(); } }
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(); } }
public CreditAppRepository() { this._context = new CreditAppContext(); }