There is class Task.cs

public class Task
    public int Id { get; set; }

    public string Title { get; set; }

    public string Description { get; set; }

    public int Priority { get; set; }

    public string DateCreation { get; set; }

    public string DateTarget { get; set; }

    public bool IsActive { get; set; }

    public bool IsDeleted { get; set; }


and its property Priority can have 4 different values: 0 - low, 1 - normal, 2 - high, 3 - extreme. What is the best way to keep these values? Should I create class Priority, or just create table Priority in my database and set these values in or use List maybe?
It's my first attempt to create Asp.Net MVC application so I'm not sure what way is better.

Related posts

Recent Viewed