예제 #1
0
 public ThanaController(IThanaService thanaService, IDivisionService divisionService
                        , IDistrictService districtService, ISPService spService)
 {
     this.thanaService    = thanaService;
     this.divisionService = divisionService;
     this.districtService = districtService;
     this.spService       = spService;
 }
예제 #2
0
 public OfficeExecutiveController(IOfficeExecutiveService officeExecutiveService, IOrganizationService organizationService
                                  , IDesignationService designationService, IDepartmentService departmentService
                                  , IGenderService genderService, IDivisionService divisionService, IDistrictService districtService
                                  , IThanaService thanaService, ICountryService countryService, ITeamService teamService
                                  , IProfessionService professionService, ISPService spService)
 {
     this.officeExecutiveService = officeExecutiveService;
     this.organizationService    = organizationService;
     this.designationService     = designationService;
     this.departmentService      = departmentService;
     this.genderService          = genderService;
     this.divisionService        = divisionService;
     this.districtService        = districtService;
     this.thanaService           = thanaService;
     this.countryService         = countryService;
     this.teamService            = teamService;
     this.professionService      = professionService;
     this.spService = spService;
 }
예제 #3
0
 public ThanaController()
 {
     var dbfactory = new DatabaseFactory();
     _thanaService = new ThanaService(new ThanaRepository(dbfactory), new UnitOfWork(dbfactory));
 }