public JsonResult Delete(int id)
        {
            KnockoutBootStrap.Core.Services.InventoryDataService obj = new InventoryDataService();

            obj.DeleteInventory(id);
            var objInventory = obj.GetContractList();
            return Json(objInventory.ToList(), JsonRequestBehavior.AllowGet);
        }
        public ActionResult Post(KnockoutBootStrap.Core.ViewModels.InventoryViewModel newInventory)
        {
            if (newInventory.ItemName != null)
            {
                KnockoutBootStrap.Core.Services.InventoryDataService obj = new InventoryDataService();
                var dataitem = obj.SaveInventoryViewModel(newInventory);
                var objInventory = obj.GetContractList();
                return Json(objInventory.ToList(), JsonRequestBehavior.AllowGet);
            }
            else
            {
                return Json("");

            }
        }
 public ActionResult GetDatabyID(int id)
 {
     KnockoutBootStrap.Core.Services.InventoryDataService obj = new InventoryDataService();
     var dataitem = obj.GetInventoryViewModel(id);
     return Json(dataitem, JsonRequestBehavior.AllowGet);
 }