Beispiel #1
0
        public async Task <IActionResult> PutCourse(int id, CourseDto course)
        {
            try
            {
                await _coursesService.PutAsync(id, course);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!_coursesService.CourseExists(id))
                {
                    return(NotFound());
                }

                throw;
            }

            return(NoContent());
        }