using Biskilog_Accounting.Shared.CustomModels; using Biskilog_Accounting.Shared.Interfaces; using Microsoft.AspNetCore.SignalR; namespace Biskilog_Accounting.Server.CloudHubs { public class SalesHub : Hub { public async Task JoinCompanyGroup(string a_companyId) { await Groups.AddToGroupAsync(Context.ConnectionId, a_companyId); } public async Task AddTransaction(string a_companyId, SaleItem a_sale) { await Clients.OthersInGroup(a_companyId).TransactionMade(a_sale); } } }