Пример #1
0
        public ActionResult Index()
        {
            // Create a new shape using the "New" property of IOrchardServices.
            var shape = _services.New.TodoList();

            var query = from item in _todoList.Items
                        let task = _todoList.GetProduct(item.TaskId)
                                   select _services.New.TodoListItem(
                Task : task
                );

            // Execute the LINQ query and store the results on a property of the shape
            shape.Task = query.ToList();

            // Store the grand total, sub total and VAT of the shopping cart in a property on the shape


            // Return a ShapeResult
            return(new ShapeResult(this, shape));
        }