Beispiel #1
0
        public IActionResult DeleteMovie(string code)
        {
            try
            {
                _logger.LogInformation($"api/Movies/CRUD:DeleteMovie: " +
                                       $"Code: {code}");

                return(Ok(_businessLogicLayer.DeleteMovie(code)));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }
        private static void TestDeleteMovieMovie(string code)
        {
            Console.WriteLine($"Testing deleting movie '{code}'.");

            Console.WriteLine($"Delete Success: {_businessLogicLayer.DeleteMovie(code).ToString()}.");
        }