public PartialViewResult Create(int todoListId) { var todoList = dbContext.SingleTodoList(todoListId); var fields = TodoItemCreateFieldsFactory.Create(todoList, User.Id()); return(PartialView(fields)); }
public IActionResult CreateItemPartial(int id) { var todoList = dbContext.SingleTodoList(id); var fields = TodoItemCreateFieldsFactory.Create(todoList, User.Id()); return(PartialView("_CreatePartial", fields)); }
public WhenTodoItemIsCreated() { srcTodoList = new TestTodoListBuilder(new IdentityUser("*****@*****.**"), "shopping").Build(); resultFields = TodoItemCreateFieldsFactory.Create(srcTodoList, srcTodoList.Owner.Id); }
private TodoItemCreateFields CreateTodoItemCreateFieldsViewModel(int todoListId) { var todoList = dbContext.SingleTodoList(todoListId); return(TodoItemCreateFieldsFactory.Create(todoList, User.Id())); }