public IActionResult Edit(BlogTag abs) { if (ModelState.IsValid) { abs.ModifiedBy = _admin.Fullname; BlogTag BlogTagToUpdate = _BlogTagRepository.GetBlogTagById(abs.Id); if (BlogTagToUpdate == null) { return(NotFound()); } _BlogTagRepository.UpdateBlogTag(BlogTagToUpdate, abs); return(RedirectToAction("index")); } return(View(abs)); }