public RecipeLineController(IRecipeLineService RecipeLineService, IExceptionHandler exec, IRecipeHeaderService RecipeHeaderService, IJobOrderSettingsService jobOrderSettingsServ , IDocumentValidation validator) { _RecipeLineService = RecipeLineService; _RecipeHeaderService = RecipeHeaderService; _jobOrderSettingsService = jobOrderSettingsServ; _exception = exec; _validator = validator; UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"]; }
public PropertyLineController(IPropertyLineService PropertyLineService, IExceptionHandler exec, IPropertyHeaderService PropertyHeaderService, IJobOrderSettingsService jobOrderSettingsServ, IDiscountTypeService DiscountTypeService , IDocumentValidation validator) { _PropertyLineService = PropertyLineService; _PropertyHeaderService = PropertyHeaderService; _jobOrderSettingsService = jobOrderSettingsServ; _DiscountTypeService = DiscountTypeService; _exception = exec; _validator = validator; UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"]; }
public JobOrderSettingsController(IJobOrderSettingsService JobOrderSettingsService, IUnitOfWork unitOfWork, IExceptionHandlingService exec) { _JobOrderSettingsService = JobOrderSettingsService; _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 JobOrderHeaderController(IJobOrderHeaderService PurchaseOrderHeaderService, IExceptionHandler exec, IDocumentTypeService DocumentTypeServ, IJobOrderSettingsService JobOrderSettingsServ, IPerkService perkServ, IPerkDocumentTypeService perkDocTypeServ, IDocumentValidation DocValidation, ICostCenterService costCenterSer) { _JobOrderHeaderService = PurchaseOrderHeaderService; _exception = exec; _documentTypeService = DocumentTypeServ; _jobOrderSettingsServie = JobOrderSettingsServ; _perkService = perkServ; _perkDocumentTypeService = perkDocTypeServ; _documentValidation = DocValidation; _costCenterService = costCenterSer; UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"]; }
public BinLocationController(IBinLocationService BinLocationService, IDocumentTypeService DocumentTypeService, IExceptionHandler exec, IGodownService GodownService, ILogger log, IModificationCheck modificationCheck, IJobOrderSettingsService jobOrderSettingsServ , IDocumentValidation validator) { _BinLocationService = BinLocationService; _GodownService = GodownService; _DocumentTypeService = DocumentTypeService; _jobOrderSettingsService = jobOrderSettingsServ; _logger = log; _exception = exec; _validator = validator; _modificationCheck = modificationCheck; UserRoles = (List <string>)System.Web.HttpContext.Current.Session["Roles"]; 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; }