Пример #1
0
 public bool UpdateLicenseInfo(MerchantLicenseInfo info)
 {
     using (var con = WriteConnection())
     {
         string SQL = "UPDATE [MerchantProfiles] SET BusinessLicenseImage=@BusinessLicenseImage,LicenseNo=@LicenseNo WHERE MerchantId=@Id";
         return(con.Execute(SQL, info) > 0);
     }
 }
Пример #2
0
        public bool UpdateLicenseInfo(MerchantLicenseInfo model)
        {
            var url    = $"{baseAddress}/UpdateLicenseInfo";
            var result = RestUtilities.PostJson(url, headers, JsonConvert.SerializeObject(model));
            var data   = JsonConvert.DeserializeObject <ServiceResult <bool> >(result);

            if (data.Code == 0)
            {
                return(data.Data);
            }
            throw new CommonException(10000, data.Message);
        }
Пример #3
0
        public ServiceResult <MerchantProfile> GetById(MerchantLicenseInfo form)
        {
            MerchantProfileDAC dac = new MerchantProfileDAC();

            return(ResultHelper.OKResult(dac.GetById(form.Id)));
        }
Пример #4
0
        public ServiceResult <bool> UpdateLicenseInfo(MerchantLicenseInfo form)
        {
            MerchantProfileDAC dac = new MerchantProfileDAC();

            return(ResultHelper.OKResult(dac.UpdateLicenseInfo(form)));
        }