public bool UpdateLv2Info(Lv2Info im) { string SQL = "UPDATE UserProfiles SET ResidentImage = @ResidentImage, Country = @Country, Postcode = @Postcode, State = @State, City = @City, Address2 = @Address2, Address1 = @Address1, L2VerifyStatus=@L2VerifyStatus,L2SubmissionDate=GETUTCDATE() WHERE UserAccountId = @Id"; using (var con = ReadConnection()) { return(con.Execute(SQL, im) > 0); } }
public bool UpdateLv2Info(Lv2Info im) { var url = $"{baseAddress}/UpdateLv2Info"; var result = RestUtilities.PostJson(url, headers, JsonConvert.SerializeObject(im)); var data = JsonConvert.DeserializeObject <ServiceResult <bool> >(result); if (data.Code == 0) { return(data.Data); } throw new CommonException(10000, data.Message); }
public bool UpdateLv2Info(Lv2Info im) { var result = false; var server = QueryKYCRouter(im.Id); if (server == null) { throw new InvalidProfileServiceException(); } var dac = new UserProfileRPC(server); result = dac.UpdateLv2Info(im); return(result); }
public ServiceResult <bool> UpdateLv2Info(Lv2Info form) { UserProfileDAC dac = new UserProfileDAC(); return(ResultHelper.OKResult(dac.UpdateLv2Info(form))); }