Пример #1
0
 public ActionResult Create(Item item)
 {
     if (ModelState.IsValid)
     {
         _itemBL.Add(new ClassModel.Item()
         {
             Title  = item.Title,
             Cost   = item.Cost,
             Amount = item.Amount
         });
         // _itemBL.Save();
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View());
     }
 }