Ejemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            try
            {
                var delete = _service.DeleteVideo(id);

                if (delete != null)
                {
                    return(Ok(delete));
                }
                else
                {
                    return(NotFound());
                }
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to delete Video {ex}");

                return(BadRequest("Failed to delete Video"));
            }
        }