Example #1
0
    string GetPriorityImageName(EmployeeTaskPriority priority)
    {
        switch (priority)
        {
        case EmployeeTaskPriority.Low:
            return("Priority1.png");

        case EmployeeTaskPriority.Normal:
            return("Priority2.png");

        case EmployeeTaskPriority.High:
            return("Priority3.png");

        case EmployeeTaskPriority.Urgent:
            return("Priority4.png");
        }
        return(string.Empty);
    }
Example #2
0
 public string GetPriorityImageUrl(EmployeeTaskPriority priority)
 {
     return(Path.Combine("~/Content/Images/Priority/", GetPriorityImageName(priority)));
 }