New source control repo for Biskilog POS - secure hub to store & manage source code. Streamlines dev process, tracks changes, & improves collaboration. Ensures reliable software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
574 B

using Biskilog_Accounting.Shared.CustomModels;
using Biskilog_Accounting.Shared.Interfaces;
using Microsoft.AspNetCore.SignalR;
namespace Biskilog_Accounting.Server.CloudHubs
{
public class SalesHub : Hub<ISalesHub>
{
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);
}
}
}