コード例 #1
0
        public PartialViewResult Create(int todoListId)
        {
            var todoList = dbContext.SingleTodoList(todoListId);
            var fields   = TodoItemCreateFieldsFactory.Create(todoList, User.Id());

            return(PartialView(fields));
        }
コード例 #2
0
        public IActionResult CreateItemPartial(int id)
        {
            var todoList = dbContext.SingleTodoList(id);
            var fields   = TodoItemCreateFieldsFactory.Create(todoList, User.Id());

            return(PartialView("_CreatePartial", fields));
        }
コード例 #3
0
        public WhenTodoItemIsCreated()
        {
            srcTodoList = new TestTodoListBuilder(new IdentityUser("*****@*****.**"), "shopping").Build();

            resultFields = TodoItemCreateFieldsFactory.Create(srcTodoList, srcTodoList.Owner.Id);
        }
コード例 #4
0
        private TodoItemCreateFields CreateTodoItemCreateFieldsViewModel(int todoListId)
        {
            var todoList = dbContext.SingleTodoList(todoListId);

            return(TodoItemCreateFieldsFactory.Create(todoList, User.Id()));
        }