public async Task DeleteTenant(EntityRequestInput input) { var tenant = await TenantManager.GetByIdAsync(input.Id); CheckErrors(await TenantManager.DeleteAsync(tenant)); }
public async Task <TenantEditDto> GetTenantForEdit(EntityRequestInput input) { return((await TenantManager.GetByIdAsync(input.Id)).MapTo <TenantEditDto>()); }