public AreasService(CookbookDbContext context, IMapper mapper, IUserContextService userContextService, IAuthorizationService authorizationService, IAreasRepository <Area> areasRepository) : base(context, mapper, userContextService, authorizationService) { _areasRepository = areasRepository; }
public AreaController(IAreasRepository areasRepository, IIndicatorsRepository indicatorsRepository, IYearsRepository yearsRepository, IStatisticsService statisticsService) { this.areasRepository = areasRepository; this.indicatorsRepository = indicatorsRepository; this.yearsRepository = yearsRepository; this.statisticsService = statisticsService; }
public AreasManager(IAreasRepository areasRepository, ICacheHandler cacheHandler, IStatisticsService statisticsService, IElasticService elasticService) : base(areasRepository) { _areasRepository = areasRepository; _cragsCache = cacheHandler.CragsCache; _cragsCacheLock = cacheHandler.CragsCacheLock; _statisticsService = statisticsService; _elasticService = elasticService; }
public WeatherLatestViewModel(IWeatherRepository weather, IAreasRepository areas) { _weather = weather; _areas = areas; foreach (var area in _areas.GetData()) { Areas.Add(new AreaEntity(area.AreaId, area.AreaName)); } }
public WeatherLatestViewModel(IWeatherRepository weather, IAreasRepository areas) { _weather = weather; //weatherを _weatherに代入 _areas = areas; //areasを _areasに代入 foreach (var area in _areas.GetData()) //foreachループ { Areas.Add(new AreaEntity(area.AreaId, area.AreaName)); } }
public DiscussionController(IDiscussionsContext context, IDiscussionRepository<Discussion> discussionRepository, IUsersRepository<User> userRepository, IAreasRepository<Area> areasRepository, IInterestsRepository<Gada.Interests.Entities.Interest> interestsRepository) { _context = context; _discussionRepository = discussionRepository; _userRepository = userRepository; _areasRepository = areasRepository; _interestsRepository = interestsRepository; Mapper.AddProfile<DiscussionsMappingProfile>(); Mapper.AddProfile<PostsMappingProfile>(); }
public WeatherSaveViewModel(IWeatherRepository weather, IAreasRepository areas) { _areas = areas; _weather = weather; DataDateValue = GetDateTime(); SelectedCondition = Condition.Sunny.Value; TemperatureText = string.Empty; foreach (var area in _areas.GetData()) { Areas.Add(new AreaEntity(area.AreaId, area.AreaName)); } }
public StatisticsService(IAreasRepository areasRepository, ICragsRepository cragsRepository, ISectorsRepository sectorsRepository, IAscentsRepository ascentsRepository, ICacheHandler cacheHandler, IElasticService elasticService) { _areasRepository = areasRepository; _cragsRepository = cragsRepository; _sectorsRepository = sectorsRepository; _ascentsRepository = ascentsRepository; _cragsCache = cacheHandler.CragsCache; _cragsCacheLock = cacheHandler.CragsCacheLock; _elasticService = elasticService; }
public WeatherLatestViewModel( IWeatherRepository weather, IAreasRepository areas) { _weather = weather; _areasRepository = areas; foreach (var area in _areasRepository.GetData()) { Areas.Add(new AreaEntity(area.AreaId, area.AreaName)); } LatestButton = new DelegateCommand(LatestButtonExecute); TestButton = new DelegateCommand(TestButtonExecute); TestButton2 = new DelegateCommand(TestButtonExecute2); }
public WeatherSaveViewModel( IWeatherRepository wather, IAreasRepository areas, IMessageService messageService) { _wather = wather; _areasRepository = areas; _messageService = messageService; DataDateValue = GetDateTime(); SelectedCondition = Condition.Sunny; TemperatureText = string.Empty; foreach (var area in _areasRepository.GetData()) { Areas.Add(new AreaEntity(area.AreaId, area.AreaName)); } SaveButton = new DelegateCommand(SaveButtonExecute); }
public ListAreas(IAreasRepository context, IMapper mapper) { _mapper = mapper; _context = context; }
public AreasController(IAreasRepository<Area> areasRepository) { _areasRepository = areasRepository; Mapper.AddProfile<AreasMappingProfile>(); }
public GetSingleArea(IAreasRepository context, IMapper mapper) { _mapper = mapper; _context = context; }
public AreasController(IAreasRepository areasRepository, IGeoPointsRepository geoPointsRepository) { _areasRepository = areasRepository; _geoPointsRepository = geoPointsRepository; }