Exemplo n.º 1
0
        public async Task <ActionResult <int> > AddNewVersionCourseProgram(int courseProgramId)
        {
            if (courseProgramId.Equals(null))
            {
                return(BadRequest("Id is empty"));
            }

            courseProgramId = await courseStorage.CourseProgramAddNewVersion(courseProgramId);

            if (courseProgramId.Equals(null))
            {
                return(BadRequest("Failed to add new version"));
            }

            return(Ok(courseProgramId));
        }