public async override Task <T> HandleAsync(CreateTenantEntityCommand <T> request, CancellationToken cancellationToken)
        {
            var tenantDBContext = dbContextProvider.GetTenantDBSet <T>();

            request.Model.Id = Guid.NewGuid();
            await tenantDBContext.InsertAsync(request.TenantId, request.AccountId, cancellationToken, request.Model);

            return(await tenantDBContext.QueryByIdAsync(request.TenantId, request.Model.Id, cancellationToken));
        }
        public async Task <IActionResult> InsertAsync([FromBody] T obj, CancellationToken cancellationToken)
        {
            var createRequest = new CreateTenantEntityCommand <T>(tenantId, accountId, obj);

            return(this.Ok(await mediator.Send(createRequest, cancellationToken)));
        }