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); }
public string GetPriorityImageUrl(EmployeeTaskPriority priority) { return(Path.Combine("~/Content/Images/Priority/", GetPriorityImageName(priority))); }