예제 #1
0
        public async Task UpdateAsync(FacebookUserModel entity)
        {
            FacebookUser facebookUser = new FacebookUser();

            facebookUser.LoginStatus = entity.LoginStatus;
            await Uow.RegisterDirtyAsync(facebookUser);

            await Uow.CommitAsync();
        }
예제 #2
0
        public async Task UpdateAsync(FacebookUserWork entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();

            //  var update = await Uow.Repository<FacebookUserWork>().FindByAsync(m => m.UserWorkId == entity.UserWorkId);
            //  await Uow.RegisterDirtyAsync(update);
//await Uow.CommitAsync();
        }
예제 #3
0
        public async Task UpdateAsync(Otp entity)
        {
            Random rnd          = new Random();
            string randomNumber = (rnd.Next(100000, 999999)).ToString();

            entity.OtpCode = Int32.Parse(randomNumber);
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #4
0
        public async Task UpdateAsync(UserAddress entity)
        {
            var user = await Uow.Repository <UserAddress>().FindByAsync(t => t.AppUserId == entity.AppUserId);

            if (user != null)
            {
                await Uow.RegisterDirtyAsync(entity);

                await Uow.CommitAsync();
            }
        }
예제 #5
0
        public async Task UpdateAsync(AppUser entity)
        {
            var user = await Uow.Repository <AppUser>().FindByAsync(t => t.AppUserId == entity.AppUserId);

            if (user != null)
            {
                PasswordResult result = PasswordHash.Encrypt(entity.userPassword);
                entity.Password = result.Signature;
                entity.Salt     = result.Salt;
                await Uow.RegisterDirtyAsync(entity);

                await Uow.CommitAsync();
            }
        }
예제 #6
0
        public async Task UpdateAsync(Authentication entity)
        {
            User user;

            user = await Uow.Repository <User>().FindByKeyAsync(entity.UserId);

            //user.FirstName = "Rutva";
            PasswordResult passwordResult = PasswordHash.Encrypt(entity.userPassword);

            user.Password = passwordResult.Signature;
            user.Salt     = passwordResult.Salt;
            await Uow.RegisterDirtyAsync(user);

            await Uow.CommitAsync();
        }
예제 #7
0
        public async Task UpdateAsync(Kyc entity)
        {
            var temp = Uow.Repository <Kyc>().Count(t => t.KycId == entity.KycId && t.KycVerifyNumber == entity.KycVerifyNumber);

            if (temp != 0)
            {
                entity.KycStatus = true;
                await Uow.RegisterDirtyAsync(entity);

                await Uow.CommitAsync();
            }
            else
            {
                entity.KycStatus = false;
                await Uow.RegisterDirtyAsync(entity);

                await Uow.CommitAsync();
            }
        }
        public async Task UpdateAsync(vCheckShareUser entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #9
0
        public async Task UpdateAsync(RolePermissions entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #10
0
        public async Task UpdateAsync(PostMessage entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #11
0
        public async Task UpdateAsync(vAvailableBed entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #12
0
        public async Task UpdateAsync(UserBankDetail entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
        public async Task UpdateAsync(vOnlineUserList entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #14
0
        public async Task UpdateAsync(BookIssue entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #15
0
        public async Task UpdateAsync(HotelBooking entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #16
0
        public async Task AddAsync(Otp entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #17
0
        public async Task UpdateAsync(PassengerInvoice entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #18
0
        public async Task UpdateAsync(vUserProfile entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #19
0
        public async Task UpdateAsync(LInkedInUserAuth entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #20
0
        public async Task UpdateAsync(vCartItem entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #21
0
        public async Task UpdateAsync(Designation entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #22
0
        public async Task UpdateAsync(UserCertification entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #23
0
        public async Task UpdateAsync(GpayUser entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #24
0
        public async Task UpdateAsync(vBookedCab entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
        public async Task UpdateAsync(LogActivity entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #26
0
        public async Task UpdateAsync(FacebookUserWork entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
        public async Task UpdateAsync(vAllPost entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #28
0
        public async Task UpdateAsync(EducationDetail entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
        public async Task UpdateAsync(SellerProduct entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
예제 #30
0
        public async Task UpdateAsync(Scratch entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }