BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<div id='url-data' class='col-lg-6' style='padding-top:15px'>
<div class='content'>
@Html.EJS().DropDownList("games").Placeholder("Select a Country").PopupHeight("200px").DataSource(dataManger => dataManger.Url("/DropDownList/UrlDatasource").Adaptor("UrlAdaptor").CrossDomain(true)).Fields(new ComboBoxFieldSettings { Value = "ShipCountry" }).Render()
</div>
</div> |
public IActionResult UrlDatasource([FromBody]Data dm)
{
var val = OrdersDetails.GetAllRecords();
var Data = val.ToList();
var count = val.Count();
if (dm.where != null) {
Data = (from cust in Data
where cust.ShipCountry.ToLower().StartsWith(dm.@where[0].value.ToString())
select cust).ToList();
}
if (dm.take != 0)
Data = Data.Take(dm.take).ToList();
return Json(Data);
} |