Ejemplo n.º 1
0
        public IHttpActionResult UpdateVipUrCloudMiner(VipUrCloudminerGet vipUrCloudMinerGet)
        {
            int rows = _vipInfoDal.UpdateVipUrCloudminer(vipUrCloudMinerGet.Id, vipUrCloudMinerGet.VipId, vipUrCloudMinerGet.CommodityId, vipUrCloudMinerGet.CloudMinerCount);

            return(Json(new ResultDataModel <VipSettingModelResult> {
                Code = rows == 1 ? 0 : -1
            }));
        }
Ejemplo n.º 2
0
        public IHttpActionResult RemoveVipUrCloudMiner(VipUrCloudminerGet vipUrCloudMinerGet)
        {
            int rows = _vipInfoDal.DeleteVipUrCloudminer(vipUrCloudMinerGet.Id);

            return(Json(new ResultDataModel <VipSettingModelResult> {
                Code = rows > 0 ? 0 : -1
            }));
        }