public UnitOfWork(DataContext context) { this.DataContext = context; countryRepo = new CountryRepo(context); continentRepo = new ContinentRepo(context); cityRepo = new CityRepo(context); }
//private readonly ILogger<CityController> _logger; public CityController(/*ILogger<CityController> logger, */ ICityRepo repo, ICityService service, IMapper mapper) { //_logger = logger; _repo = repo; _service = service; _mapper = mapper; }
public CityController(ILogger <CityController> logger, ICityRepo cityRepos, ApplicationDbContext context, IWebHostEnvironment env) { _logger = logger; _cityRepos = cityRepos; _context = context; _env = env; }
public EmployeeController(IEmployeeRepo repo, IDepartmentRepo department, ICountryRepo country, ICityRepo city) { this.repo = repo; this.department = department; this.city = city; this.country = country; }
public CommonDataService() { _ICountryRepo = new CountryRepo(); _IStateRepo = new StateRepo(); _IDistrictRepo = new DistrictRepo(); _ICityRepo = new CityRepo(); _IDesignationRepo = new DesignationRepo(); }
public ScheduleManager(IUnitOfWork uow) { this.scheduleRepo = uow.GetScheduleRepositry(); this.FlightCostRepo = uow.GetFlightCostRepository(); this.FlightRepo = uow.GetFlightRepository(); this.CityRepo = uow.GetCityRepository(); this.RouteRepo = uow.GetRouteRepository(); this.TravelClassRepo = uow.GetTravelClassRepository(); }
public AccountController(ICountryRepo countryRepo, IProvinceRepo provinceRepo, ICityRepo cityRepo, IBarangayRepo barangayRepo, UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, IMailService mailService) { this.countryRepo = countryRepo; this.provinceRepo = provinceRepo; this.cityRepo = cityRepo; this.barangayRepo = barangayRepo; this.userManager = userManager; this.signInManager = signInManager; this.mailService = mailService; }
public CityService() { this._ICityRepo = new CityRepo(); }
/// <summary> /// Initializes a new instance of the <see cref="CitiesController"/> class. /// </summary> /// <param name="cityRepo">The city repo.</param> public CitiesController(ICityRepo cityRepo) { _cityRepo = cityRepo; }
public CityLogic(ICityRepo <City> repo) : base(repo) { }
public ICityRepo GetCityRepository() { crepo = new CityEFRepository(); return(crepo); }
public PeopleService(IPeopleRepo peopleRepo, ICityRepo cityRepo) { _peopleRepo = peopleRepo; _cityRepo = cityRepo; }
public CitiesController(ICityRepo repository) { _repository = repository; }
public RouteManager(IUnitOfWork uow) { repoRoute = uow.GetRouteRepository(); repoCity = uow.GetCityRepository(); }
readonly ICountryRepo _countryRepo; //Storage for country data public CityService(ICityRepo cityRepo, ICountryRepo countryRepo) { this._cityRepo = cityRepo; this._countryRepo = countryRepo; }
public CityService(ICityRepo cityRepo, IMapper mapper) { _cityRepo = cityRepo; _mapper = mapper; }
public CitiesController(ICityRepo cityRepo, IMapper mapper) { _cityRepo = cityRepo; _mapper = mapper; }
//ICountryRepo _countryRepo; public PeopleService(IPeopleRepo peopleRepo, ICityRepo cityRepo) /*ICountryRepo countryRepo)*/ { _peopleRepo = peopleRepo; _cityRepo = cityRepo; //_countryRepo = countryRepo; }
public CityController(ICityRepo _cityRepo) { cityRepo = _cityRepo; }
public CityService(ICityRepo Repository) { this.Repository = Repository; }
//private readonly ICityService _cityService; /*public CityService(ICityRepo cityRepo, ICityService cityService) * { * _cityRepo = cityRepo; * _cityService = cityService; * }*/ public CityService(ICityRepo cityRepo, IPeopleRepo peopleRepo) { _cityRepo = cityRepo; _peopleRepo = peopleRepo; }
public CountryService(ICountryRepo countryRepo, ICityRepo cityRepo) { _countryRepo = countryRepo; _cityRepo = cityRepo; }
public CityManager(IUnitOfWork uow) { this.cityRepo = uow.GetCityRepository(); this.stateRepo = uow.GetStateRepository(); }
public CityService(IPeopleRepo peopleRepo, ICityRepo cityRepo, ICountryRepo countryRepo) { _cityRepo = cityRepo; _peopleRepo = peopleRepo; _countryRepo = countryRepo; }
public CityService(ICityRepo cityRepo) { _cityRepo = cityRepo; }