Ejemplo n.º 1
0
 public VotingController(IRepository <VoteConfigurationViewModel> vcrepo, IRepository <VoteResult> resrepo,
                         IRepository <VoteConfiguration> crepo, ElectionsIndiaContext db, IMapper mapper,
                         IRepository <Countries> courepo, IRepository <States> strepo, IRepository <VW_DsitrictsWithActive> disrepo,
                         IRepository <City> cirepo, IRepository <Areas> arepo, IRepository <ElectionWard> ewardrepo,
                         IRepository <ElectionBooth> borepo, IRepository <ElectionKiosk> kioskrepo, IRepository <Candidates> carepo
                         , IRepository <PoliticalParties> parepo, IRepository <ElectionType> typerepo,
                         IRepository <VoteConfiguration> confrepo, CastVoteService castVoteService)
 {
     this.vcrepo          = vcrepo;
     this.resrepo         = resrepo;
     this.crepo           = crepo;
     this.db              = db;
     this.mapper          = mapper;
     this.courepo         = courepo;
     this.strepo          = strepo;
     this.disrepo         = disrepo;
     this.cirepo          = cirepo;
     this.arepo           = arepo;
     this.ewardrepo       = ewardrepo;
     this.borepo          = borepo;
     this.kioskrepo       = kioskrepo;
     this.carepo          = carepo;
     this.parepo          = parepo;
     this.typerepo        = typerepo;
     this.confrepo        = confrepo;
     this.castVoteService = castVoteService;
 }
Ejemplo n.º 2
0
 public GenericRepository(ElectionsIndiaContext context)
 {
     _context = context;
     if (_context != null)
     {
         entities = _context.Set <T>();
     }
 }
Ejemplo n.º 3
0
 public ElectionKioskController(IRepository <ElectionKiosk> ekrepo, ElectionsIndiaContext db,
                                IRepository <ElectionBooth> boothrepo, ResourceManager resManager)
 {
     this.ekrepo     = ekrepo;
     this.db         = db;
     this.boothrepo  = boothrepo;
     this.resManager = resManager;
 }
Ejemplo n.º 4
0
 public StatesController(IRepository <States> staterepo, ElectionsIndiaContext db, IRepository <Countries> courepo, IRepository <Languages> langrepo, IRepository <StateLanguages> slangrepo)
 {
     _staterepo = staterepo;
     _db        = db;
     _courepo   = courepo;
     _langrepo  = langrepo;
     _slangrepo = slangrepo;
 }
Ejemplo n.º 5
0
 public ElectionWardController(IRepository <ElectionWardListViewModel> ewardrepo, ElectionsIndiaContext db, IRepository <ElectionWard> ewrepo,
                               IRepository <ElectionArea> arerepo, IWardService wardService, IRepository <ElectionWard> wardRepo)
 {
     this.ewardrepo   = ewardrepo;
     this.db          = db;
     this.ewrepo      = ewrepo;
     this.arerepo     = arerepo;
     this.wardService = wardService;
     this.wardRepo    = wardRepo;
 }
Ejemplo n.º 6
0
 public DistrictsController(IRepository <Districts> distrepo,
                            ElectionsIndiaContext db, IRepository <States> staterepo,
                            IDistrictService districtService, IStringSplitter strSplitter)
 {
     _distrepo            = distrepo;
     _db                  = db;
     _staterepo           = staterepo;
     this.districtService = districtService;
     this.strSplitter     = strSplitter;
 }
Ejemplo n.º 7
0
 public CityController(IRepository <City> cityrepo, ElectionsIndiaContext db,
                       IRepository <CityListViewModels> clrepo, IRepository <Districts> disrepo,
                       ICityService cityService, IRepository <City> cityRepo, IStringSplitter strSplitter)
 {
     this.cityrepo    = cityrepo;
     this.db          = db;
     this.clrepo      = clrepo;
     this.disrepo     = disrepo;
     this.cityService = cityService;
     this.cityRepo    = cityRepo;
     this.strSplitter = strSplitter;
 }
        public CountriesController(IRepository <Countries> countryrep, ElectionsIndiaContext db, IRepository <Languages> langrepo, IRepository <CountryLanguages> countrylang
                                   , IRepository <States> stateRepo, IDistrictService distService,
                                   IStringSplitter strSplitter)
        {
            _countryrepo = countryrep;
            _db          = db;
            _langrepo    = langrepo;
            _countrylang = countrylang;

            this.stateRepo   = stateRepo;
            this.distService = distService;
            this.strSplitter = strSplitter;
        }
Ejemplo n.º 9
0
 public AreasController(IRepository <AreaListViewModel> alistrepo, ElectionsIndiaContext db, IRepository <States> staterepo, IRepository <Languages> langrepo, IRepository <Countries> courepo, IRepository <City> city, IRepository <ElectionArea> earepo
                        , IAreaService areaService, IRepository <ElectionArea> areaRepo, IStringSplitter strSplitter)
 {
     _alistrepo       = alistrepo;
     _db              = db;
     _langrepo        = langrepo;
     _staterepo       = staterepo;
     _courepo         = courepo;
     this.city        = city;
     this.earepo      = earepo;
     this.areaService = areaService;
     this.areaRepo    = areaRepo;
     this.strSplitter = strSplitter;
 }
 public PoliticalPartyController(IRepository <PoliticalPartyListViewModel> pprepo, ElectionsIndiaContext db,
                                 IRepository <Countries> courepo, IRepository <States> staterepo, IRepository <Languages> langrepo,
                                 IRepository <PoliticalPartyLanguages> plangrepo, IRepository <PoliticalPartyLanguagesCreateViewModel> crepo,
                                 IWebHostEnvironment hostingEnvironment)
 {
     this.pprepo             = pprepo;
     this.db                 = db;
     this.courepo            = courepo;
     this.staterepo          = staterepo;
     this.langrepo           = langrepo;
     this.plangrepo          = plangrepo;
     this.crepo              = crepo;
     this.hostingEnvironment = hostingEnvironment;
 }
 public ElectionBoothController(IRepository <ElectionBooth> borepo, ElectionsIndiaContext db, IRepository <ElectionWard> wardrepo)
 {
     this.borepo   = borepo;
     this.db       = db;
     this.wardrepo = wardrepo;
 }
 public DistrictService(ElectionsIndiaContext db)
 {
     this.db = db;
 }
 public CastVoteService(ElectionsIndiaContext db)
 {
     this.db = db;
 }
Ejemplo n.º 14
0
 public CityServices(ElectionsIndiaContext db)
 {
     this.db = db;
 }
Ejemplo n.º 15
0
 public BoothService(ElectionsIndiaContext db)
 {
     this.db = db;
 }
 public LanguagesController(IRepository <Languages> languagerepo, ElectionsIndiaContext db)
 {
     _languagerepo = languagerepo;
     _db           = db;
 }
Ejemplo n.º 17
0
 public WardService(ElectionsIndiaContext db)
 {
     this.db = db;
 }
Ejemplo n.º 18
0
 public AreaService(ElectionsIndiaContext db)
 {
     this.db = db;
 }
Ejemplo n.º 19
0
 public KioskService(ElectionsIndiaContext db)
 {
     this.db = db;
 }