public bool NotifyPurchaserOffers(int IdSubasta, UserAutentication objuser) { Auction Auctionobj = new Auction(); Auctionobj.Id = IdSubasta; Auctionobj.User = objuser; List <Purchaser> purchasersInfo = PurchaserB.PurchasersInfo(Auctionobj); Clients.All.onNotifyPurchaserOffers(purchasersInfo); 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.Purchaser> PurchasersInfo(AuctionDesc.Infrastructure.Models.Auction obj) { return(PurchaserB.PurchasersInfo(obj)); }
public bool SavePurchaserUser(AuctionDesc.Infrastructure.Models.Purchaser purchaserObj) { return(PurchaserB.SavePurchaserUser(purchaserObj)); }
public bool PurchasersSaveState(List <AuctionDesc.Infrastructure.Models.Purchaser> purchaserObjList) { return(PurchaserB.PurchasersSaveState(purchaserObjList)); }
public AuctionDesc.Infrastructure.Models.Purchaser PurchaserInfoById(AuctionDesc.Infrastructure.Models.Purchaser obj) { return(PurchaserB.PurchaserInfoById(obj)); }