Esempio n. 1
0
        public ActionResult AddItem(string NameOfItem, string description, double price, int QuantityNumber)
        {
            List <ShowItemViewModel> newItem = new List <ShowItemViewModel>();
            ShowItemViewModel        item    = new ShowItemViewModel(NameOfItem, description, price, QuantityNumber);

            newItem.Add(item);
            return(View(newItem));
        }
Esempio n. 2
0
        public ActionResult testData()
        {
            List <ShowItemViewModel> test  = new List <ShowItemViewModel>();
            ShowItemViewModel        test1 = new ShowItemViewModel("Xanax", "Used for short term management of anxiety disorders, specifically panick disorder or generslized anxiety disorder", 56.00, 100);

            test.Add(test1);
            return(View(test));
        }
Esempio n. 3
0
        public ShowItemPage()
        {
            InitializeComponent();

            BindingContext = ViewModel = new ShowItemViewModel();
        }