public virtual async Task AddVadlidationCode(ValidationCodeEntity model) { model.Should().NotBeNull("add validation code model"); model.InitEntity(); await this.userAccountRepository.AddVadlidationCode(model); }
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(); }