public ActionResult Index() { AuctionViewModel vModel = new AuctionViewModel(); vModel.PageTitle = "Home Page"; vModel.PageDescription = "I am home page"; vModel.AllAuctions = service.GetAllAuction(); vModel.PromotedAuctions = service.GetPromotedAuction(); return(View(vModel)); }
public ActionResult Index() { AuctionsViewModel vmodel = new AuctionsViewModel(); vmodel.PageTitle = "Home Page"; vmodel.PageDescription = "This is Home Page"; vmodel.AllAuctions = service.GetAllAuction(); vmodel.PromoteAuctions = service.GetPromotedAuction(); return(View(vmodel)); }