Пример #1
0
 public Transport()
 {
     Read = new CrudOperation();
 }
Пример #2
0
 protected virtual void SetOperationUrl(CrudOperation operation, string actionName, string controllerName, object routeValues)
 {
     operation.Action(actionName, controllerName, routeValues);
     operation.Url = operation.GenerateUrl(viewContext, null);
 }
 public CrudOperationBuilder(CrudOperation operation, ViewContext viewContext, IUrlGenerator urlGenerator)
 {
     this.viewContext  = viewContext;
     this.urlGenerator = urlGenerator;
     this.operation    = operation;
 }