Esempio n. 1
0
 //
 // GET: /Posting/
 public ActionResult Index()
 {
     string Title = "Managerial Accounting - Ninth Canadian Edition";
     string Course = "AFM 102";
     string Condition = "Good";
     string PostedBy = "John Smith";
     DateTime Date = new DateTime(2013, 2, 21, 12, 0, 0);
     string ISBN = "10 0-470-56479-2";
     double price = 50.00;
     string Author = "Walter T. Harrison";
     MarketPostModel mpm = new MarketPostModel(Title, false, Course, Condition, PostedBy, Date, ISBN, Author, price);
     return View(mpm);
 }
Esempio n. 2
0
        //
        // GET: /Market/
        public ActionResult Index()
        {
            List<MarketPostModel> mpmLst = new List<MarketPostModel>();
            MarketPostModel mpm1 = new MarketPostModel("My Awesome AFM 101 Textbook", false, "AFM 101", "Excellent", "Asma Patel", DateTime.Now, "978-3-16-148410-0", "Mark Twain", 300);
            MarketPostModel mpm2 = new MarketPostModel("Buy this book, buy it NAO!", false, "MATH 135", "Good", "Johnny Depp", DateTime.Now, "978-3-16-148410-0", "John Jacob JingleHeimer", 150.99);
            MarketPostModel mpm3 = new MarketPostModel("This is a nice lookin title isnt it ;)", false, "STAT 230", "Good", "Jack Johnson", DateTime.Now, "978-3-16-148410-0", "Kiets d a", 0.99);
            MarketPostModel mpm4 = new MarketPostModel("Title #4 ", false, "ACTS 230", "Good", "Hugh Grant", DateTime.Now, "978-3-16-148410-0", "Homer J. Simpson", 500.99);

            mpmLst.Add(mpm1);
            mpmLst.Add(mpm2);
            mpmLst.Add(mpm3);
            mpmLst.Add(mpm4);

            return View(mpmLst);
        }