Esempio n. 1
0
        public ActionResult ItemsUnitPartialDelete(System.String Code)
        {
            var model = new object[0];

            if (Code != null)
            {
                try
                {
                    // Insert here a code to delete the item from your model
                    ItemUnitList.DeleteItemUnit(Code);
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            return(PartialView("_ItemsUnitPartial", ItemUnitList.GetData()));
        }
Esempio n. 2
0
        public ActionResult ItemsUnitPartialUpdate(APIItemUnit item)
        {
            var model = new object[0];

            if (ModelState.IsValid)
            {
                try
                {
                    // Insert here a code to update the item in your model
                    ItemUnitList.UpdateItemUnit(item);
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_ItemsUnitPartial", ItemUnitList.GetData()));
        }
Esempio n. 3
0
 public ActionResult ItemsUnitPartial()
 {
     //var model = new object[0];
     return(PartialView("_ItemsUnitPartial", ItemUnitList.GetData()));
 }