public ActionResult Storage(StorageOfExternalPreProductViewModel model)
        {
            var deviceCode = _configurationService.ProductDeviceCode;
            var terminalNo = _identityService.FindTerminalNo(HttpContext.User.Identity);

            var result = _storageOfExternalPreProductDomain.StoringExternalPreProduct(model.LotNo.Trim(),
                                                                                      model.PreProductCode.Trim(), model.Quantity, model.PalletNo.Trim(), terminalNo, deviceCode);

            if (!result.IsSuccess)
            {
                return(Json(new { Success = false, Message = result.ErrorMessages }));
            }

            return(Json(new { Success = true, KndNo = result.Data }));
        }
        //
        // GET: /ProductManagement/StorageOfExternalPreProduct/
        public ActionResult Index()
        {
            var model = new StorageOfExternalPreProductViewModel();

            return(View(model));
        }