public async Task <IActionResult> Edit(int id, Special_Tags st) { if (id != st.Id) { return(NotFound()); } if (ModelState.IsValid) { if (orm == 1) { db.upSpecialTag(st); } else { _db.Update(st); await _db.SaveChangesAsync(); } TempData["edit"] = 1; return(RedirectToAction(nameof(Index))); } return(View(st)); }