Ejemplo n.º 1
0
        public ActionResult Delete(string id)
        {
            var routeValues = new RouteValueDictionary();

            routeValues.Add("Controller", GetTheNameOfThisController());
            routeValues.Add("Action", "Index");

            deploymentRepository.Delete(id);

            return(new RedirectToRouteResult(routeValues));
        }