public ActionResult <object> GetIndexList()
        {
            b_logo_resources_Entity model = new b_logo_resources_Entity();

            var(list, total) = this._repository.GetList(model, -1, -1);
            return(list.ResponseSuccess("", total));
        }
        public ActionResult <object> GetList(int pageindex = 1, int pagesize = 24)
        {
            b_logo_resources_Entity entity = new b_logo_resources_Entity();

            var(list, total) = this._repository.GetList(entity, pageindex, pagesize);
            return(list.ResponseSuccess("", total));
        }
        public ActionResult <object> Delete([FromBody] b_logo_resourcesVM model)
        {
            b_logo_resources_Entity entity = new b_logo_resources_Entity();

            this.SetUpdateUserInfo(entity);
            return(this._repository.Delete(model.Logo_ID).ResponseSuccess());
        }
        public ActionResult <object> Post([FromBody] b_logo_resourcesVM model)
        {
            b_logo_resources_Entity entity = model.ConvertToT <b_logo_resources_Entity>();

            this.SetCreateUserInfo(entity);
            return(this._repository.Insert(entity).ResponseSuccess());
        }
        /// <summary>
        /// 新增
        /// <summary>
        public bool Insert(b_logo_resources_Entity model)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();

            if (!string.IsNullOrWhiteSpace(model.Logo_Name_CH))
            {
                dic["Logo_Name_CH"] = model.Logo_Name_CH;
            }
            if (!string.IsNullOrWhiteSpace(model.Logo_Name_HK))
            {
                dic["Logo_Name_HK"] = model.Logo_Name_HK;
            }
            if (!string.IsNullOrWhiteSpace(model.Logo_URL))
            {
                dic["Logo_URL"] = model.Logo_URL;
            }

            if (model.Logo_Seq >= 0)
            {
                dic["Logo_Seq"] = model.Logo_Seq;
            }
            if (model.Create_UserId != null)
            {
                dic["Create_UserId"] = model.Create_UserId;
            }
            if (model.Create_User != null)
            {
                dic["Create_User"] = model.Create_User;
            }
            return(SQLHelperFactory.Instance.ExecuteNonQuery("Insert_b_logo_resources", dic) > 0);
        }
        /// <summary>
        /// 获取列表
        /// <summary>
        public (IEnumerable <b_logo_resources_Entity>, int) GetList(b_logo_resources_Entity model, int pageindex, int pagesize)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();

            if (pageindex >= 0)
            {
                dic["StartIndex"] = pageindex <= 1 ? 0 : (pageindex - 1) * pagesize;
            }
            if (pagesize > 0)
            {
                dic["SelectCount"] = pagesize;
            }
            var list = SQLHelperFactory.Instance.QueryMultipleByPage <b_logo_resources_Entity>("Select_b_logo_resources_List", dic, out int total);

            return(list, total);
        }