Example #1
0
        public IActionResult Edit(int Id)
        {
            Settings setting = _aboutUsRepository.GetSettingById(Id);

            if (setting == null)
            {
                return(NotFound());
            }
            var model = _mapper.Map <Settings, SettingsViewModel>(setting);

            return(View(model));
        }