public IActionResult Change(string id) { SqlConnect connect = new SqlConnect(); connect.UpdateCommand(id); RedirectToActionResult redirectResult = new RedirectToActionResult("Doctor/" + TempData["clinum"], "Home", ""); return(redirectResult); }