public specialController() { _TrendsService = ServiceFactory.TrendsService; _StatisticsService = ServiceFactory.StatisticsService; _ModelnumbersService = ServiceFactory.ModelnumbersService; _OperatingsystemService = ServiceFactory.OperatingsystemService; _ResolutionService = ServiceFactory.ResolutionService; _NetworkService = ServiceFactory.NetworkService; _OperatorService = ServiceFactory.OperatorService; _ProvinceService = ServiceFactory.ProvinceService; _AppService = ServiceFactory.AppService; }
public ManagerResolutionsController(IResolutionService resolutionService) { _resolutionService = resolutionService; var resolutions = _resolutionService.GetAll(); if (resolutions != null) { var resolutionViewModels = Mapper.Map <IEnumerable <ResolutionViewModel> >(resolutions); _listresolutionViewModel = resolutionViewModels.ToList(); } }
public ManagerSeriesTVController(IMoviesService movieService, IFilmService filmService, IProducerService producerService, IActorsService actorService, ICategorysService categorysService, IDirectorService directorService, ITagService tagService, IResolutionService resolutionService, IActorMovieService actorMovieService, IDirectorMovieService directorMovieService, ICategoryMovieService categoryMovieService, IProducerMovieService producerMovieService, IResolutionMovieService resolutionMovieService, ITagMovieService tagMovieService) { _movieService = movieService; _filmService = filmService; _producerService = producerService; _actorService = actorService; _categorysService = categorysService; _directorService = directorService; _tagService = tagService; _resolutionService = resolutionService; _actorMovieService = actorMovieService; _directorMovieService = directorMovieService; _categoryMovieService = categoryMovieService; _producerMovieService = producerMovieService; _resolutionMovieService = resolutionMovieService; _tagMovieService = tagMovieService; var listMovies = _movieService.GetAllSeriesTV(); if (!_listSeriesTV.Any()) { foreach (var item in listMovies) { var movieViewModel = AutoMapper.Mapper.Map <MoviesViewModel>(item); var listFilm = _filmService.GetAllFilmInSeriesTV(item.Id); var filmViewModel = AutoMapper.Mapper.Map <IList <FilmViewModel> >(listFilm); var model = new SeriesTVViewModel() { MoviesViewModel = movieViewModel, FilmViewModels = filmViewModel }; _listSeriesTV.Add(model); } } }
public static List <Models.ResolutionDetailVM> GetResolutionList() { IResolutionService resolutionService = DependencyUtils.Resolve <IResolutionService>(); var resolutions = resolutionService.Get().ToList(); var resolutionVMs = new List <Models.ResolutionDetailVM>(); foreach (var item in resolutions) { var b = new Models.ResolutionDetailVM { Height = item.Height, Id = item.ResolutionID, Width = item.Width, Note = item.Note, }; resolutionVMs.Add(b); } return(resolutionVMs); }
//Resolution/GetResolutionListByBrandID public static List <Models.ResolutionDetailVM> GetResolutionListByBrandID() { IResolutionService resolutionService = DependencyUtils.Resolve <IResolutionService>(); var resolutionVMs = new List <Models.ResolutionDetailVM>(); IBrandService brandService = DependencyUtils.Resolve <IBrandService>(); var user = Helper.GetCurrentUser(); var resolutions = resolutionService.GetResolutionIdByBrandId(user.BrandID); foreach (var item in resolutions) { var b = new Models.ResolutionDetailVM { Height = item.Height, Id = item.ResolutionID, Width = item.Width, Note = item.Note, }; resolutionVMs.Add(b); } return(resolutionVMs); }
public ResolutionController(IResolutionService context) { _context = context; }
public CoreValidations(IResolutionService resolutionService, IResolutionServiceRepository repository) { _resolutionService = resolutionService; _repository = repository; _hoursNotesValidator = new HoursNotesValidator(); }
public SSGResolution(IResolutionService resolutionService, IResolutionServiceRepository repository) { _resolutionService = resolutionService; _repository = repository; }
public ScheduleResolution(IResolutionService resolutionService) { _resolutionService = resolutionService; }
public ResolutionController(IResolutionService resolutionService) { _resolutionService = resolutionService; }
public ResolutionsController(IResolutionService resolutionSvc) { this.resolutionSvc = resolutionSvc; }
public CaseAndProviderValidations(IResolutionService resolutionService) { _resolutionService = resolutionService; _assessmentServiceIDs = _resolutionService.AssessmentServiceIDs; }