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); } }
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); }
public ServiceResult <MerchantProfile> GetById(MerchantLicenseInfo form) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.GetById(form.Id))); }
public ServiceResult <bool> UpdateLicenseInfo(MerchantLicenseInfo form) { MerchantProfileDAC dac = new MerchantProfileDAC(); return(ResultHelper.OKResult(dac.UpdateLicenseInfo(form))); }