示例#1
0
        public ActionResult SaveOtherConsumables(Model.Inventory model)
        {
            model.CountryProgrammeId = countryProg.Id;
            if (!gRNService.IsInventoryUpdated(model))
            {
                ViewBag.Response = 0;
                ViewBag.Action   = "SaveOtherConsumables";
                ViewBag.msg      = Resources.Global_String_AnErrorOccurred;
                model.Items      = new SelectList(ORService.GetItems(), "Id", "Name");
                return(View("LoadOtherConsumables", model));
            }

            ViewBag.Response = 1;
            ViewBag.msg      = Resources.Global_String_ProcessCompleted;
            ModelState.Clear();
            SessionData.CurrentSession.InventoryList = null;
            return(LoadOtherConsumables());
        }