예제 #1
0
        public IActionResult Get(long id)
        {
            try
            {
                // var username = User.Identity.Name;

                //   _logger.LogInformation("GetOrders has been called now");

                var receipt = _service.GetVideo(id);

                return(Ok(receipt));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Video failed to load {ex}");

                return(BadRequest($"Video faild to load  {ex}"));
            }
        }