MvvmFramework.Samples.Uwp.Repositories.TodoListItemsRepository.CreateTodoListItem C# (CSharp) 메소드

CreateTodoListItem() 공개 메소드

Adds a new item to the todo list.
public CreateTodoListItem ( string title, string description ) : TodoListItem
title string The title of the new todo list item.
description string The description of the new todo list item.
리턴 MvvmFramework.Samples.Uwp.Models.TodoListItem
        public TodoListItem CreateTodoListItem(string title, string description)
        {
            TodoListItem todoListItem = new TodoListItem
            {
                Title = title,
                Description = description
            };
            TodoListItemsRepository.todoListItems.Add(todoListItem);
            return todoListItem;
        }