【先上链接:http://pan.baidu.com/s/1o62AHbc 】

多图杀猫

先用一组图看看实现的功能:

CQRS学习——一个例子(其六)

CQRS学习——一个例子(其六)

CQRS学习——一个例子(其六)

添加一个功能

假定现在要添加一个书本录入的功能,那么执行如下的操作:

1.添加Controller

public class BookController : DpfbMvcController
    {
        public ActionResult List(int size = 10, int index = 1)
        {
            throw new NotImplementedException();
        }

        [Authorize]
        public ActionResult Add()
        {
            return View();
        }

        [Authorize]
        [HttpPost]
        public ActionResult Add(BookAddViewModel model)
        {
            throw new NotImplementedException();
        }
    }
View Code

相关文章:

  • 2021-04-24
  • 2021-12-17
  • 2021-06-17
  • 2021-08-31
  • 2022-12-23
  • 2021-11-01
  • 2021-05-16
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-06-01
  • 2021-09-17
  • 2022-12-23
  • 2021-07-14
  • 2021-08-10
  • 2021-09-17
相关资源
相似解决方案