Пример #1
0
        public IActionResult Index()
        {
            var settings = _aboutUsRepository.GetSettings();
            var model    = _mapper.Map <Settings, SettingsViewModel>(settings);

            return(View(model));
        }
 public IActionResult Create()
 {
     ViewBag.Settings = _aboutUsRepository.GetSettings();
     return(View());
 }