Exemple #1
0
 public IActionResult Create(SettingsViewModel setting)
 {
     if (ModelState.IsValid)
     {
         Settings model = _mapper.Map <SettingsViewModel, Settings>(setting);
         model.CreatedBy = _admin.FullName;
         _aboutUsRepository.CreateSetting(model);
         return(RedirectToAction("index"));
     }
     return(View(setting));
 }