Exemple #1
0
        public async Task <IActionResult> DeleteCourse(Guid courseId)
        {
            var instututeEntity = await _courseRepository.GetCourseAsync(courseId);

            if (instututeEntity == null)
            {
                return(NotFound());
            }

            _courseRepository.DeleteCourse(instututeEntity);

            await _courseRepository.SaveAsync();

            return(NoContent());
        }