Example #1
0
        public JsonResult DecreaseQty(CleaningUsageModel model)
        {
            // Update model to your db
            //  foreach (var item in model) {
            //      model.ID = item.ID;
            //      model.Description = item.Description;
            //      model.Qty = item.Qty;
            //      model.UserQty = item.UserQty * -1;
            //  }

            string message = "Success - Decrease Quantity - Usage";

            return(Json(message, JsonRequestBehavior.AllowGet));
        }
Example #2
0
        //
        // GET: /CleaningUsage/

        public ActionResult Index()
        {
            List <CleaningUsageModel> items = CleaningUsageModel.GetItems();

            return(View(items));
        }