public List <string> Handle(AllTaskPrioritiesQuery query)
 {
     TaskPriority[] priorities = TaskPriority.GetAll();
     return(priorities.Select(x => x.DisplayName).ToList());
 }
Example #2
0
        public HttpResponseMessage GetPriorities()
        {
            var taskPriorities = TaskPriority.GetAll();

            return(Request.CreateResponse(HttpStatusCode.OK, taskPriorities.Select(x => x.DisplayName)));
        }