If Priority contain 1 then return "Low"
If Priority contain 2 then return "Medium"
If Priority contain 3 then return "High"
I have tried...
- public class DocumentsUser
- {
- public string Priority { get; set; }
- }
-
- List<DocumentsUser> objUserSetUp = objUserSetUp1.Select(m => new DocumentsUser()
- {
- Priority = m.Priority == 3 ? "High" : "Low",
- }
How can I do that?