public ServiceResult <bool> UpdateMerchantLicense(UpdateMerchantLicenseIM profile) { MerchantProfileDAC dac = new MerchantProfileDAC(); bool result = dac.UpdateMerchantLicense(profile.MerchantId, profile.CompanyName, profile.LicenseNo, profile.BusinessLicense); return(ResultHelper.OKResult(result)); }
public bool UpdateMerchantLicense(Guid merchantId, string companyName, string licenseNo, Guid businessLicense) { var url = $"{baseAddress}/UpdateMerchantLicense"; var obj = new UpdateMerchantLicenseIM() { MerchantId = merchantId, CompanyName = companyName, LicenseNo = licenseNo, BusinessLicense = businessLicense }; var result = RestUtilities.PostJson(url, headers, JsonConvert.SerializeObject(obj)); var data = JsonConvert.DeserializeObject <ServiceResult <bool> >(result); if (data.Code == 0) { return(data.Data); } throw new CommonException(10000, data.Message); }