public ProductBuyersExcelImportController(IProductService productService, IUnitOfWork unitOfWork, IProductBuyerService productBuyerService, IBuyerService buyer) { _BuyerService = buyer; _ProductService = productService; _ProductBuyerService = productBuyerService; _unitOfWork = unitOfWork; }
public ProductBuyerController(IProductBuyerService ProductBuyerService, IUnitOfWork unitOfWork, IExceptionHandlingService exec) { _ProductBuyerService = ProductBuyerService; _unitOfWork = unitOfWork; _exception = exec; //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; }