Example #1
0
        public virtual async Task AddVadlidationCode(ValidationCodeEntity model)
        {
            model.Should().NotBeNull("add validation code model");

            model.InitEntity();

            await this.userAccountRepository.AddVadlidationCode(model);
        }
Example #2
0
        public virtual async Task AddVadlidationCode(ValidationCodeEntity model)
        {
            model.Should().NotBeNull("add validation code model");

            model.InitSelf();

            var db = this._userRepo.Database;

            db.Set <ValidationCodeEntity>().Add(model);

            await db.SaveChangesAsync();
        }