public IActionResult PostVideo([FromBody] VideoModel model)
        {
            try
            {
                model.CreatedBy  = UserId; // GetCurrentUserId().Result;
                model.ModifiedBy = UserId;
                string newVideoName = string.Empty;
                string newImageName = string.Empty;

                string webRootPath = _env.WebRootPath;
                string _path       = Path.Combine(webRootPath, "assets\\Videos");
                string _pathImage  = Path.Combine(webRootPath, "assets\\Images");

                if (!string.IsNullOrEmpty(model.VideoUrl))
                {
                    newVideoName = Guid.NewGuid().ToString() + "_" + Path.GetFileName(model.VideoUrl);
                    _path        = Path.Combine(_path, newVideoName);
                }
                if (!string.IsNullOrEmpty(model.ThumbNail))
                {
                    newImageName = Guid.NewGuid().ToString() + "_" + Path.GetFileName(model.ThumbNail);
                    _pathImage   = Path.Combine(_pathImage, newImageName);
                }


                var op = _service.AddVideoOrUpdate(model);

                if (op.Succeeded)
                {
                    return(Ok(op));
                }
                else
                {
                    return(BadRequest(op));
                }
            }
            catch (Exception ex)
            {
                _logger.LogError($"Failed to save new Video:{ex}");
            }

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