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();
        }
예제 #2
0
 public PropertyChargeViewComponent(UserManager <ApplicationUser> userManager, IRentAccountService rentSvc)
 {
     _userManager = userManager;
     _rentSvc     = rentSvc;
 }
예제 #3
0
 public RentLedgerViewComponent(UserManager <ApplicationUser> userManager, IRentAccountService rentSvc)
 {
     _userManager = userManager;
     _rentSvc     = rentSvc;
 }