Exemple #1
0
 public ActionResult Product(string id)
 {
     if (string.IsNullOrEmpty(id))
     {
         return(PartialView("_Product", new ProductToken {
             is_draft = true, id = _idService.GenerateId()
         }));
     }
     else
     {
         return(PartialView("_Product", _sellerService.GetProduct(id)));
     }
 }