Я делаю запрос к api '/ api / Customers', но когда я проверяю вкладку заголовков сети, я вижу URL как 'http://localhost: 56912 / api / Customers? _ = 1579068576376 '
Невозможно понять, откуда поступает это дополнительное значение'? _ = 1579068576376 '
Ниже приведен код jquery:
//#customers is the id of table and I am using datatable plug in over it
$("#customers").DataTable({
ajax: {
url: "/api/customers",
dataSrc: "",
columns: [
{
data: "name",
render: function (data, type, customer) {
return "<a href='Customers/Edit" + customer.id + "'>" + customer.name + "'</a>'"
}
},
{
data: "id",
render: function (data) {
return "<button class='btn-link js-delete' data-customer-id="+ data+">Delete</button>"
}
}
]
}
});
Ниже указано API, который я пытаюсь назвать:
public IEnumerable<CustomerDto> GetCustomers()
{
return _context.Customers.ToList().Select(Mapper.Map<Customers,CustomerDto>);
}
//Context is an instance of db from entity framework