コード例 #1
0
        public ActionResult GridView_FSOrderPartialUpdate(MVC.Areas.Sell.Models.APIFSOrder item)
        {
            var model = new object[0];

            if (ModelState.IsValid)
            {
                try
                {
                    // Insert here a code to update the item in your model
                    APIFSOrderList.UpdateItem(item);
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_GridView_FSOrderPartial", APIFSOrderList.GetData()));
        }