public ActionResult Index()
        {
            SalesInventoryVM model = new SalesInventoryVM();

            SalesPostmaster.ResetIndexVM(model);

            return(View(model));
        }
        public ActionResult Index(SalesInventoryVM model)
        {
            SearchManager searchMgr = new SearchManager();

            model.Query.InventoryType = InventoryType.Sales;

            model.Result = searchMgr.GetSearchResult(searchMgr.ParcelPackage(model.Query));

            SalesPostmaster.ResetIndexVM(model);

            return(View(model));
        }
        public ActionResult Purchase(string id)
        {
            var courier = SalesPostmaster.GetVehicleById(id);

            if (courier.Success)
            {
                SalesPurchaseVM model = new SalesPurchaseVM();

                model.Vehicle = courier.Package;

                return(View(model));
            }
            else
            {
                throw new Exception(courier.Message);
            }
        }