public virtual int InsertTenant(TenantRecord rec) { var @param = new { rec.Name }; return(this.session.Insert( nameof(this.InsertTenant), @param)); }
private TenantRecord InsertTenant(string name) { var rec = new TenantRecord { Name = name, }; rec.Id = this.repository.InsertTenant(rec); return(rec); }