Esempio n. 1
0
        public ActionResult Edit()
        {
            int  itemId = int.Parse(RouteData.Values["id"].ToString());
            var  record = _itemBL.GetRecord(itemId);
            Item item   = new Item()
            {
                Title  = record.Title,
                Cost   = record.Cost,
                Amount = record.Amount
            };

            return(View(item));
        }