Пример #1
0
        /// <summary>
        /// Sets the route values for the operation.
        /// </summary>
        /// <param name="routeValues">Route values</param>
        public ServerCrudOperationBuilder Route(RouteValueDictionary routeValues)
        {
            operation.Action(routeValues);

            SetUrl();

            return(this);
        }
Пример #2
0
 protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)
 {
     operation.Action(actionName, controllerName, routeValues);
     operation.Url = operation.GenerateUrl(viewContext, urlGenerator);
 }
Пример #3
0
 protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)
 {
     operation.Action(actionName, controllerName, routeValues);
     operation.Url = operation.GenerateUrl(viewContext, urlGenerator);
 }