// GET: Auctions
        public ActionResult Index()
        {
            AuctionsListingViewModel model = new AuctionsListingViewModel();

            model.Auctions        = auctionService.GetAllAuction();
            model.PageTitle       = "Autions";
            model.PageDescription = "Auction Listing Page";
            return(View(model));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            AuctionService service  = new AuctionService();
            var            auctions = service.GetAllAuction();

            if (Request.IsAjaxRequest())
            {
                return(PartialView(auctions));
            }
            return(View(auctions));
        }
Esempio n. 3
0
        public ActionResult Index()
        {
            AuctionsViewModel viewmodel = new AuctionsViewModel();

            viewmodel.PageTitle        = "Home page";
            viewmodel.PageDescription  = "This is Home Page";
            viewmodel.PromotedAuctions = service.GetPermotedAuction();
            viewmodel.AllAuctions      = service.GetAllAuction();



            return(View(viewmodel));
        }