Beispiel #1
0
        public bool AllocateGoods([FromBody] RetrievalViewModel model)
        {
            bool bRes = RequestDAO.AllocateGoods(
                model.itemNo,
                model.DueDate,
                model.quantityRetrieval,
                model.quantityInstoreDamaged,
                model.quantityInstoreMissing);

            if (bRes)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
        public ActionResult Edit(RetrievalViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            bool bRes = RequestDAO.AllocateGoods(
                model.itemNo,
                model.DueDate,
                model.quantityRetrieval,
                model.quantityInstoreDamaged,
                model.quantityInstoreMissing);

            if (bRes)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(View("~/Views/Shared/Error.cshtml"));
            }
        }