Ejemplo n.º 1
0
 public GalleryCatViewModel(BaseViewModelConfig config, GalleryCat cat, int totalPictures,
                            int currentPage) : base(config)
 {
     GalleryCat    = cat;
     TotalPictures = totalPictures;
     CurrentPage   = currentPage;
 }
Ejemplo n.º 2
0
 public NewsListByDateViewModel(BaseViewModelConfig config, IEnumerable <Common.Models.News> news, int totalNews,
                                int currentPage, int year, int?month, int?day) : base(config, news, totalNews, currentPage)
 {
     Year  = year;
     Month = month;
     Day   = day;
 }
Ejemplo n.º 3
0
 public NewsListViewModel(BaseViewModelConfig config, IEnumerable <Common.Models.News> news, int totalNews,
                          int currentPage) : base(config)
 {
     News        = news;
     TotalNews   = totalNews;
     CurrentPage = currentPage;
 }
Ejemplo n.º 4
0
 public FileCatViewModel(BaseViewModelConfig config, FileCat fileCat, int totalFiles,
                         int currentPage)
     : base(config)
 {
     FileCat     = fileCat;
     CurrentPage = currentPage;
     TotalFiles  = totalFiles;
 }
Ejemplo n.º 5
0
        protected BaseController(IMediator mediator, IOptions <AppSettings> appSettingsOptions,
                                 IContentHelperInterface contentHelper)
        {
            Mediator = mediator;
            var settings = mediator.Send(new GetSettingsQuery()).GetAwaiter().GetResult().models;

            ViewModelConfig = new BaseViewModelConfig(appSettingsOptions.Value, settings, contentHelper);
        }
Ejemplo n.º 6
0
 public GamePageViewModel(BaseViewModelConfig config, Game game, IEnumerable <Common.Models.News> lastNews,
                          IEnumerable <Article> lastArticles, IEnumerable <File> lastFiles, IEnumerable <GalleryPic> lastPics)
     : base(config)
 {
     Game         = game;
     LastNews     = lastNews;
     LastArticles = lastArticles;
     LastFiles    = lastFiles;
     LastPics     = lastPics;
 }
Ejemplo n.º 7
0
 public ParentArticlesViewModel(BaseViewModelConfig config, IParentModel parent,
                                IEnumerable <ArticleCat> cats) : base(config)
 {
     Parent = parent;
     Cats   = cats;
 }
Ejemplo n.º 8
0
 public OneNewsViewModel(BaseViewModelConfig config, Common.Models.News news) : base(config)
 {
     News = news;
 }
Ejemplo n.º 9
0
 public ArticleCatViewModel(BaseViewModelConfig config, ArticleCat articleCat)
     : base(config)
 {
     ArticleCat = articleCat;
 }
Ejemplo n.º 10
0
 public ParentGalleryViewModel(BaseViewModelConfig config, IParentModel parent,
                               IEnumerable <GalleryCat> cats) : base(config)
 {
     Parent = parent;
     Cats   = cats;
 }
Ejemplo n.º 11
0
 public ErrorsViewModel(BaseViewModelConfig config, int errorCode) : base(config)
 {
     ErrorCode = errorCode;
 }
Ejemplo n.º 12
0
 public ArticleViewModel(BaseViewModelConfig config, Article article) : base(config)
 {
     Article = article;
 }
Ejemplo n.º 13
0
 public SearchViewModel(BaseViewModelConfig config, string query) : base(config)
 {
     Query = query;
 }
Ejemplo n.º 14
0
 public FileViewModel(BaseViewModelConfig config, File file) : base(config)
 {
     File = file;
 }