示例#1
0
        public ActionResult Create([Bind] ProductModel productModel, IFormCollection collection)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    var result = _productApiClient.CreateAsync(productModel).Result;
                }

                return(RedirectToAction(nameof(Index)));
            }
            catch
            {
                return(View());
            }
        }