Ejemplo n.º 1
0
        public async Task <ActionResult <List <CourseProgramOutputModel> > > GetObj()
        {
            var coursePrograms = CourseProgramMapper.ToListCourseProgramOutputModel(await courseStorage.CourseProgramGetAll());

            if (coursePrograms == null)
            {
                return(NotFound());
            }
            return(Ok(coursePrograms));
        }