public async Task <IEnumerable <TaskDTO> > GetTasks(int objectiveId, int statusTypeKey) { StatusTypes?statusType = null; if (Enum.IsDefined(typeof(StatusTypes), statusTypeKey)) { statusType = (StatusTypes)statusTypeKey; } return(await _readerService.GetTasksByObjectiveId(objectiveId, statusType)); }