For example, to enable product editing support we can implement the HTTP-GET version of our "edit" action method on our Products controller like below and then invoke the "Add View" command.
例如,要支持产品编辑,我们可以象下面这样在Products控制器上实现“Edit”action方法的HTTP - GET版本,然后调用“添加视图”命令。
But if we were to add another resource, that wouldn't be so DRY, and if we add in support for more formats, we'll end up with lots of code in each controller.
而如果我们添加了对更多格式的支持,我们将需要面对每个controller中的大量代码。
But if we were to add another resource, that wouldn't be so DRY, and if we add in support for more formats, we'll end up with lots of code in each controller.
而如果我们添加了对更多格式的支持,我们将需要面对每个controller中的大量代码。
应用推荐