Код: Выделить всё
@foreach(var document in Model.Documents)
{
[url=@(Url.Action(]Download[/url]
Delete
Код: Выделить всё
public async Task DownloadDocument(int vehicleServiceId, Guid fileId, string fileName)
{
var file = await AttachmentHelper.GetFromAzureBlobAsync($"{vehicleServiceId}/{fileId}", AppConsts.VehicleServiceDocumentsContainerName);
return File(file.Content, "application/octet-stream", fileName + ".pdf");
}
Если я удалю часть VehicleServiceId={{vehicleServiceId}}&, я получу fileId, и т. д.
Что я делаю не так?
Подробнее здесь: https://stackoverflow.com/questions/787 ... m-mvc-view
Мобильная версия