public IActionResult UrlDatasource([FromBody] Data dm) { //var order = OrdersDetails.GetAllRecords(); //var Data = order.ToList(); //int count = order.Count(); var shipcountry = ShipCountryDetails.getShipCountryData(); var Data = shipcountry.ToList(); int count = shipcountry.Count(); return(dm.requiresCounts ? Json(new { result = Data.Skip(dm.skip).Take(dm.take), count = count }) : Json(Data)); }
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()); }