public List <string> Handle(AllTaskPrioritiesQuery query) { TaskPriority[] priorities = TaskPriority.GetAll(); return(priorities.Select(x => x.DisplayName).ToList()); }
public HttpResponseMessage GetPriorities() { var taskPriorities = TaskPriority.GetAll(); return(Request.CreateResponse(HttpStatusCode.OK, taskPriorities.Select(x => x.DisplayName))); }