看Oxite的源码时遇到个很困惑的问题,在Oxite的Controller中,很多Action返回值不是我们常见的ActionResult类型,比如说这里:
| public class PageController : Controller |
| { |
| //.... |
| public virtual OxiteModelItem<Page> Item(string pagePath) |
| { |
| Page page = pageService.GetPage(pagePath); |
| if (page == null) return null; |
| return new OxiteModelItem<Page> |
| { |
| Item = page |
| }; |
| } |
| //..... |
| } |