public void OnGet(Guid toDoListId) { CreateUpdateToDoItem = new CreateUpdateToDoItemViewModel { ParentId = toDoListId }; }
public async Task OnGetAsync(Guid toDoListId, Guid toDoItemId) { CreateUpdateToDoItem = ObjectMapper.Map <ToDoItemDto, CreateUpdateToDoItemViewModel>(await _toDoAppService.GetToDoItemById(toDoListId, toDoItemId)); }