MvvmFramework.Samples.Uwp.Repositories.TodoListItemsRepository.CreateTodoListItem C# (CSharp) Method

CreateTodoListItem() public method

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.
return 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;
        }