public ChartService(IIncomeService incomeService, IOutGoingService outGoingService, ISourceOfAmountService sourceOfAmountService, ITypeOfOutgoingService typeOfOutgoingService) { _incomeService = incomeService; _outGoingService = outGoingService; _sourceOfAmountService = sourceOfAmountService; _typeOfOutgoingService = typeOfOutgoingService; }
public FinancialBalanceController(IIncomeService incomeService, IOutGoingService outGoingService, ITypeOfOutgoingService typeOfOutgoingService, ISourceOfAmountService sourceOfAmountService) { _incomeService = incomeService; _outGoingService = outGoingService; _typeOfOutgoingService = typeOfOutgoingService; _sourceOfAmountService = sourceOfAmountService; try { _idLoggedUser = System.Web.HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>().FindById(System.Web.HttpContext.Current.User.Identity.GetUserId()).Id; } catch (Exception ex) { _idLoggedUser = string.Empty; } }