Beispiel #1
0
 public AjaxController(
     INomenclatureService _nomenclatureService,
     ICaseService _caseService,
     ICommonService _commonService,
     IUserContext _userContext,
     ICasePersonService _casePersonService,
     ICalendarService _calendarService,
     ICaseGroupService _caseGroupService,
     ICaseLoadIndexService _caseLoadIndexService,
     IEisppService _eisppService,
     ILogOperationService <ApplicationDbContext> _logOperation,
     ICdnService _cdnService)
 {
     nomenclatureService  = _nomenclatureService;
     caseService          = _caseService;
     commonService        = _commonService;
     userContext          = _userContext;
     logOperation         = _logOperation;
     calendarService      = _calendarService;
     casePersonService    = _casePersonService;
     caseGroupService     = _caseGroupService;
     caseLoadIndexService = _caseLoadIndexService;
     eisppService         = _eisppService;
     cdnService           = _cdnService;
 }
        protected void SaveLogOperation(string controllerName, string actionName, string html, OperationTypes operation, object objectKey, object masterKey = null)
        {
            ILogOperationService <ApplicationDbContext> logOperation =
                (ILogOperationService <ApplicationDbContext>)HttpContext
                .RequestServices
                .GetService(typeof(ILogOperationService <ApplicationDbContext>));

            logOperation.Save(controllerName.ToLower(), logOperation.MakeActionName(actionName, ActionTransformType.AddToEdit)?.ToLower(), objectKey.ToString(), operation, html, userContext.LogName, userContext.UserId, masterKey?.ToString());
        }