/// <summary>
        ///     Reject a raw material by using P.O Number and partial delivery.
        /// </summary>
        /// <param name="searchMaterialViewModel"></param>
        /// <returns></returns>
        public ActionResult Reject(AcceptanceOfMaterialViewModel searchMaterialViewModel)
        {
            // Call reject material from domain.
            _acceptanceOfMaterialDomain.RejectRawMaterial(searchMaterialViewModel.PNo,
                                                          searchMaterialViewModel.PartialDelivery);

            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }
        public ActionResult Index()
        {
            // This model contains search input information and Grid view of materials list.
            var acceptanceOfMaterialViewModel = new AcceptanceOfMaterialViewModel
            {
                Grid = GenerateGrid()
            };

            return(View(acceptanceOfMaterialViewModel));
        }