public IActionResult Create()
        {
            var model = new BatchHomeVM();

            model.AvailableFruits  = this._common.GetAllFruits();
            model.AvailableVariety = this._common.GetAllVariety();
            return(View(model));
        }
        /// <summary>
        /// List all batches with pagination
        /// </summary>
        /// <returns></returns>
        public IActionResult Index(int?currentPage)
        {
            if (currentPage == null || currentPage < 1)
            {
                currentPage = 1;
            }
            var model = new BatchHomeVM();

            model.PageSize    = 5;
            model.CurrentPage = currentPage ?? 1;
            model.BatchList   = this._batch.GetAll(model.PageSize, model.CurrentPage);
            model.TotalCount  = this._batch.GetTotalCount();
            return(View(model));
        }