public PurchaseQuotationLineController(IPurchaseQuotationLineService SaleOrder, IPurchaseQuotationHeaderService QuotationHeader, IUnitOfWork unitOfWork, IExceptionHandlingService exec) { _PurchaseQuotationLineService = SaleOrder; _PurchaseQuotationHeaderService = QuotationHeader; _unitOfWork = unitOfWork; _exception = exec; 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; }
public PurchaseQuotationHeaderController(IPurchaseQuotationHeaderService PurchaseQuotationHeaderService, IUnitOfWork unitOfWork, IExceptionHandlingService exec) { _PurchaseQuotationHeaderService = PurchaseQuotationHeaderService; _unitOfWork = unitOfWork; _exception = exec; //if (!PurchaseQuotationReceiveEvents.Initialized) //{ // PurchaseQuotationReceiveEvents Obj = new PurchaseQuotationReceiveEvents(); //} 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; }