Пример #1
0
        public ActionResult Index()
        {
            var lstLanguages = _languagesRepository.GetAll();

            TempData["Languages"] = lstLanguages.ToList();
            return(View());
        }
Пример #2
0
        public ActionResult Index()
        {
            var objUser      = _userAdminRepository.Find(User.ID);
            var lstLanguages = _languagesRepository.GetAll();

            TempData["Languages"] = lstLanguages.ToList();
            var lstGalleryCategory = _galleryCategoryRepository.GetAll();

            TempData["GalleryCategory"] = lstGalleryCategory.ToList();
            return(View());
        }
Пример #3
0
 public LanguagesQueryResult Handle(LanguagesQuery query)
 {
     try
     {
         var Languages = _LanguagesRepository.GetAll().ToList();
         return(new LanguagesQueryResult
         {
             Languages = Languages
         });
     }
     catch (Exception ex)
     {
         _logger.Log(Logging.Enums.LogCategory.Error, ex);
     }
     return(new LanguagesQueryResult
     {
     });
 }