예제 #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;
 }