Ejemplo n.º 1
0
        public PurchaseOrderRateAmendmentWizardController(IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _PurchaseOrderAmendmentHeaderService = new PurchaseOrderAmendmentHeaderService(db);
            _exception  = exec;
            _unitOfWork = unitOfWork;
            if (!PurchaseOrderAmendmentEvents.Initialized)
            {
                PurchaseOrderAmendmentEvents Obj = new PurchaseOrderAmendmentEvents();
            }

            UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"];

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }