Пример #1
0
 public ActionResult Create(Shoe s)
 {
     if (ModelState.IsValid)
     {
         theShoes.Add(s);
         return RedirectToAction("Index");
     }
     else
     {
         return View(s);
     }
 }
Пример #2
0
 public void addShoeToList(Shoe s)
 {
     theShoes.Add(s);
 }