public IActionResult SetPriorityForm(NameValueCollection arg) { var todoId = new TodoId(arg["id"]); var options = new[] { 1, 2, 3, 4, 5 }; var selectListValues = SelectListValues.New("priority", options); return(new SetPriorityView(todoId, selectListValues)); }
public SetPriorityView(TodoId todoId, SelectListValues selectListValues) { this.todoId = todoId; this.selectListValues = selectListValues; }