Exemple #1
0
        public IHttpActionResult GetSubTasks(int taskId)
        {
            try
            {
                var tasks = subTaskService.GetSubTasks(taskId).Select(s => subTaskFactory.CreateSubTask(s));

                return(Ok(tasks));
            }
            catch (ValidationException ex)
            {
                return(NotFound());
            }
            catch (Exception)
            {
                return(InternalServerError());
            }
        }