Exemple #1
0
        public async Task <IActionResult> DeleteMovie(int id)
        {
            try
            {
                await _moviesService.DeleteAndSaveAsync(id);
            }
            catch (Exception)
            {
                return(NotFound());
            }

            return(NoContent());
        }