Ejemplo n.º 1
0
        public bool UpdateLv1Info(Lv1Info im)
        {
            string SQL = "UPDATE UserProfiles SET FirstName = @FirstName, LastName = @LastName, IdentityDocType = @IdentityDocType, IdentityDocNo = @IdentityDocNo, FrontIdentityImage = @FrontIdentityImage, BackIdentityImage = @BackIdentityImage, HandHoldWithCard = @HandHoldWithCard, L1VerifyStatus=@L1VerifyStatus,L1SubmissionDate=GETUTCDATE() WHERE UserAccountId = @Id";

            using (var con = ReadConnection())
            {
                return(con.Execute(SQL, im) > 0);
            }
        }
Ejemplo n.º 2
0
        public bool UpdateLv1Info(Lv1Info im)
        {
            var url    = $"{baseAddress}/UpdateLv1Info";
            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);
        }
Ejemplo n.º 3
0
        public bool UpdateLv1Info(Lv1Info im)
        {
            var result = false;
            var server = QueryKYCRouter(im.Id);

            if (server == null)
            {
                throw new InvalidProfileServiceException();
            }

            var dac = new UserProfileRPC(server);

            result = dac.UpdateLv1Info(im);
            return(result);
        }
Ejemplo n.º 4
0
        public ServiceResult <bool> UpdateLv1Info(Lv1Info form)
        {
            UserProfileDAC dac = new UserProfileDAC();

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