sks.</li>
	<li>Instead of directly passing result of the GetAll method to the view, I created an IndexViewModel class in the .Web project which is shown below:</li>
</ul>

<pre lang="cs">
public class IndexViewModel
{
    <strong>public IReadOnlyList&lt;TaskListDto&gt; Tasks { get; }</strong>

    public IndexViewModel(IReadOnlyList&lt;TaskListDto&gt; tasks)
    {
        Tasks = tasks;
    }

    <strong>public string GetTaskLabel(TaskListDto task)</strong>
    {
        switch (task.State)
        {
     