public IActionResult createvideo(StrategyViewModels model)
        {
            var response = ResponseModelFactory.CreateInstance;

            using (_dbContext)
            {
                var entity = _dbContext.Promotional.First(x => x.Isdeleted == 0);
                if (entity != null)
                {
                    entity.Video = model.Video;
                    _dbContext.SaveChanges();
                }
                else
                {
                    var dd = new HaiKanTravelManagementSystem.Api.Entities.Promotional();
                    dd.PromotionalUuid = Guid.NewGuid();
                    dd.Video           = model.Video;
                    dd.Isdeleted       = 0;
                    _dbContext.Promotional.Add(entity);
                    _dbContext.SaveChanges();
                }
                // var entity = new HaiKanTravelManagementSystem.Api.Entities.Promotional();

                response.SetSuccess("保存成功");
                response = ResponseModelFactory.CreateInstance;
                return(Ok(response));
            }
        }
        public IActionResult editggboy(StrategyViewModels model)
        {
            var response = ResponseModelFactory.CreateInstance;

            using (_dbContext)
            {
                var entity = _dbContext.Strategy.FirstOrDefault(x => x.StrategyUuid == model.StrategyUuid);
                if (entity == null)
                {
                    response.SetFailed("不存在");
                    return(Ok(response));
                }
                if (model.ThroughStaues != "" && model.ThroughStaues != null)
                {
                    if (model.ThroughStaues == "通过")
                    {
                        entity.ThroughStaues = 0;
                    }
                    if (model.ThroughStaues == "不通过")
                    {
                        entity.ThroughStaues = 1;
                    }
                    entity.AuditStaues = 1;
                    int res = _dbContext.SaveChanges();
                    if (res > 0)
                    {
                        ToLog.AddLog("审核", "成功:审核:攻略发布管理列表数据", _dbContext);
                    }
                }
                else
                {
                    response.SetFailed("已审核,请勿重复操作");
                    return(Ok(response));
                }
                response = ResponseModelFactory.CreateInstance;
                return(Ok(response));
            }
        }