public IActionResult Edit(AboutUs abs)
 {
     if (ModelState.IsValid)
     {
         abs.ModifiedBy = _admin.Fullname;
         AboutUs AboutUsToUpdate = _AboutUsRepository.GetAboutUsById(abs.Id);
         if (AboutUsToUpdate == null)
         {
             return(NotFound());
         }
         _AboutUsRepository.UpdateAboutUs(AboutUsToUpdate, abs);
         return(RedirectToAction("index"));
     }
     return(View(abs));
 }
 public IActionResult Edit(AboutUsViewModel abs)
 {
     if (ModelState.IsValid)
     {
         AboutUs model = _mapper.Map <AboutUsViewModel, AboutUs>(abs);
         model.ModifiedBy = _admin.FullName;
         AboutUs AboutUsToUpdate = _aboutUsRepository.GetAboutUsById(abs.Id);
         if (AboutUsToUpdate == null)
         {
             return(NotFound());
         }
         _aboutUsRepository.UpdateAboutUs(AboutUsToUpdate, model);
         return(RedirectToAction("index"));
     }
     return(Ok(abs));
 }