Exemplo n.º 1
0
        public ActionResult Save(int?id)
        {
            var obj = new ProductVer();

            if (id.HasValue)
            {
                obj = ProductVerService.Get(id.Value);
            }
            return(View(obj.IsNullThrow()));
        }
Exemplo n.º 2
0
        public ActionResult Save(ProductVer obj)
        {
            var re = ProductVerService.SaveOrUpdate(obj);

            return(new OpActionResult(re));
        }