Exemplo n.º 1
0
        public ResponseModel UpdateASingleProducDataOfWarehousePOView(InvWarehousePOItemReceived aObj)
        {
            try
            {
                DateTime aDate = DateTime.Now;

                InvWarehousePOItemReceived invWarehousePOItemReceived = _db.InvWarehousePOItemReceiveds.Find(aObj.WarehousePOItemReceivedId);
                invWarehousePOItemReceived.IsActive             = false;
                invWarehousePOItemReceived.ModifiedDate         = aDate;
                invWarehousePOItemReceived.ItemReceivedQuantity = aObj.ItemReceivedQuantity;

                _db.InvWarehousePOItemReceiveds.Attach(invWarehousePOItemReceived);
                _db.Entry(invWarehousePOItemReceived).State = EntityState.Modified;
                _db.SaveChanges();
                return(_aModel.Respons(true, "New Product Quantity Successfully Updated"));
            }
            catch (Exception e)
            {
                return(_aModel.Respons(false, "Sorry! Some  Error Happned"));
            }
        }
Exemplo n.º 2
0
        //// GET: /Inventory/WarehousePO/UpdateASingleProducDataOfWarehousePOView
        public JsonResult UpdateASingleProducDataOfWarehousePOView(InvWarehousePOItemReceived aObj)
        {
            var data = _aManager.UpdateASingleProducDataOfWarehousePOView(aObj);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }