public ActionResult ServerValidation(ProductDto dto)
        {
            if (ModelState.IsValid)
            {
                ViewData["productID"] = dto.ProductID;
            }

            return View(dto);
        }
        public ActionResult ServerValidation()
        {
            ProductDto dto =
                new ProductDto
                {
                    ProductID = 1,
                    UnitPrice = 12
                };

            return View(dto);
        }
 public ActionResult EditTemplate(ProductDto product)
 {
     if (product.ProductID == 0)
     {
         product.ProductID = 1;
         product.ProductName = "Chai";
         product.UnitPrice = 18.00m;
     }
     else
     {
         ViewData["product"] = product;
     }
     return View(product);
 }