func (c *WorkitemController) ListChildren(ctx *app.ListChildrenWorkitemContext) error {
	// WorkItemChildrenController_List: start_implement

	// Put your logic here
	return application.Transactional(c.db, func(appl application.Application) error {
		result, err := appl.WorkItemLinks().ListWorkItemChildren(ctx, ctx.WiID)
		if err != nil {
			return jsonapi.JSONErrorResponse(ctx, goa.ErrNotFound(err.Error()))
		}
		return ctx.ConditionalEntities(result, c.config.GetCacheControlWorkItems, func() error {
			response := app.WorkItemList{
				Data: ConvertWorkItems(ctx.RequestData, result),
			}
			return ctx.OK(&response)
		})
	})
}
// ListChildren runs the list action.
ListChildren runs the list action.
// ListChildren runs the list action .
func (c *WorkitemController) ListChildren(ctx *app.ListChildrenWorkitemContext) error {
	return application.Transactional(c.db, func(appl application.Application) error {
		result, err := appl.WorkItemLinks().ListWorkItemChildren(ctx, ctx.WiID)
		if err != nil {
			return jsonapi.JSONErrorResponse(ctx, goa.ErrNotFound(err.Error()))
		}
		return ctx.ConditionalEntities(result, c.config.GetCacheControlWorkItems, func() error {
			response := app.WorkItemList{
				Data: ConvertWorkItems(ctx.RequestData, result),
			}
			return ctx.OK(&response)
		})
	})
}
func ( c * WorkitemController ) ListChildren ( ctx * app . ListChildrenWorkitemContext ) error { return application . Transactional ( c . db , func ( appl application . Application ) error { result , err := appl . WorkItemLinks ( ) . ListWorkItemChildren ( ctx , ctx . WiID ) if err != nil { return jsonapi . JSONErrorResponse ( ctx , goa . ErrNotFound ( err . Error ( ) ) ) } return ctx . ConditionalEntities ( result , c . config . GetCacheControlWorkItems , func ( ) error { response := app . WorkItemList { Data : ConvertWorkItems ( ctx . RequestData , result ) , } return ctx . OK ( & response ) } ) } ) }
ListChildren runs the list action.
ListChildren runs the list action .
// WorkItemChildrenController_List: start_implement // Put your logic here