public bool NotifySellerDemand(int IdSubasta, UserAutentication objuser) { Auction Auctionobj = new Auction(); Auctionobj.Id = IdSubasta; Auctionobj.User = objuser; List <Seller> sellersInfo = SellerB.SellersInfo(Auctionobj); Clients.All.onNotifySellerDemand(sellersInfo); return(true); }
public bool NotifyAprobateAuctionIngress(int IdSubasta, UserAutentication objuser) { Auction Auctionobj = new Auction(); Auctionobj.Id = IdSubasta; Auctionobj.User = objuser; // GasUserHub user = _connectedUsers.Where(x => x.UserName == UserName ).FirstOrDefault(); List <Purchaser> PurchaserInfo = PurchaserB.PurchasersInfo(Auctionobj); List <Seller> SellerrInfo = SellerB.SellersInfo(Auctionobj); Clients.Group(GasProfile.Subastador.ToString()).onNotifyAprobateAuctionIngressSeller(SellerrInfo); Clients.Group(GasProfile.Comprador.ToString()).onNotifyAprobateAuctionIngressPurchaser(PurchaserInfo); Clients.Group(GasProfile.Vendedor.ToString()).onNotifyAprobateAuctionIngressSeller(SellerrInfo); // Clients.User(user.SessionId).afs(); // Clients.All.onNotifyIncriptionUpdate(AuctionInfo); return(true); }
public List <AuctionDesc.Infrastructure.Models.Seller> SellersInfo(AuctionDesc.Infrastructure.Models.Auction obj) { return(SellerB.SellersInfo(obj)); }