public IActionResult Index()
        {
            var Order = OrdersDetails.GetAllRecords();

            ViewBag.DataSource = Order;
            var shipcity = ShipCityDetails.getShipCityData();

            ViewBag.ShipCityData = shipcity;
            var shipCountry = ShipCountryDetails.getShipCountryData();

            ViewBag.ShipCountryData = shipCountry;

            return(View());
        }
        public IActionResult CityDatasource([FromBody] ExtendedDataManager dm)
        {
            var shipcity      = ShipCityDetails.getShipCityData();
            var Data          = shipcity;
            var dataOperation = new DataOperations();
            int count         = shipcity.Count();
            List <ShipCityDetails> iterateState = new List <ShipCityDetails>();
            IEnumerable            DataSource   = null;

            if (dm.Where != null && dm.Where.Count > 0)
            {
                DataSource = dataOperation.PerformFiltering(shipcity, dm.Where, dm.Where[0].Operator);
            }
            else
            {
                DataSource = shipcity;
            }

            return(dm.RequiresCounts ? Json(new { result = DataSource.Cast <ShipCityDetails>().Skip(dm.Skip).Take(dm.Take), count = count }) : Json(DataSource.Cast <ShipCityDetails>().ToList()));
        }