Пример #1
0
 public object InsertUpdatedModelToAuditTrailForUpdateKyc(object currentModel, object prevModel, string who, int parentMenuId, int actionId, string menu, string whichId = null, string response = null)
 {
     try
     {
         AuditTrail auditTrail = new AuditTrail();
         auditTrail.Who = who;
         auditTrail.WhichParentMenuId  = parentMenuId;
         auditTrail.WhatActionId       = actionId;
         auditTrail.WhichMenu          = menu;
         auditTrail.WhichId            = whichId;
         auditTrail.Response           = response;
         auditTrail.InputFeildAndValue = auditTrailService.GetAuditTrialFeildByDifferenceBetweenObjectForUpdateKyc(currentModel, prevModel);
         auditTrailService.InsertIntoAuditTrail(auditTrail);
         return(true);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }