Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public List <AuctionDesc.Infrastructure.Models.Purchaser> PurchasersInfo(AuctionDesc.Infrastructure.Models.Auction obj)
 {
     return(PurchaserB.PurchasersInfo(obj));
 }
Пример #4
0
 public bool SavePurchaserUser(AuctionDesc.Infrastructure.Models.Purchaser purchaserObj)
 {
     return(PurchaserB.SavePurchaserUser(purchaserObj));
 }
Пример #5
0
 public bool PurchasersSaveState(List <AuctionDesc.Infrastructure.Models.Purchaser> purchaserObjList)
 {
     return(PurchaserB.PurchasersSaveState(purchaserObjList));
 }
Пример #6
0
 public AuctionDesc.Infrastructure.Models.Purchaser PurchaserInfoById(AuctionDesc.Infrastructure.Models.Purchaser obj)
 {
     return(PurchaserB.PurchaserInfoById(obj));
 }