public ActionResult Delete(string id) { var routeValues = new RouteValueDictionary(); routeValues.Add("Controller", GetTheNameOfThisController()); routeValues.Add("Action", "Index"); deploymentRepository.Delete(id); return(new RedirectToRouteResult(routeValues)); }