public TenanciesController(IConfiguration config, ITenancyService tenancySvc, IPropertyService propertySvc, IActionService actionSvc, IAlertService alertSvc, IRentAccountService rentAccountSvc, UserManager <ApplicationUser> userManager) { _config = config; _tenancySvc = tenancySvc; _propertySvc = propertySvc; _actionSvc = actionSvc; _alertSvc = alertSvc; _userManager = userManager; _rentAccountSvc = rentAccountSvc; //AutoMapper mapping config _mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <tenancy, TenancyViewModel>(); cfg.CreateMap <TenancyViewModel, tenancy>(); }); //Create mapper instance _mapper = _mapperConfig.CreateMapper(); }
public PropertyChargeViewComponent(UserManager <ApplicationUser> userManager, IRentAccountService rentSvc) { _userManager = userManager; _rentSvc = rentSvc; }
public RentLedgerViewComponent(UserManager <ApplicationUser> userManager, IRentAccountService rentSvc) { _userManager = userManager; _rentSvc = rentSvc; }