Exemple #1
0
        public ActionResult AddSize(Size size)
        {
            if (ModelState.IsValid)
            {
                repository.Add(size);
                return RedirectToAction("Index");
            }

            return View(size);
        }
Exemple #2
0
 public ActionResult AddSize()
 {
     Size size = new Size();
     return View(size);
 }