введите сюда описание изображения
Код в представлении:
Код: Выделить всё
var _getDocumentsUrl = '@Html.Raw(@Url.Action("GetDocuments", "Document", new { Section = "0", Province = "1", County = "0", District = "0", area = "Province" }))';
Код: Выделить всё
public IActionResult GetDocuments(AreaVM area)
{///codes////}
Код: Выделить всё
public class AreaVM
{
public string? Section { get; set; }
public string? Province { get; set; }
public string? County { get; set; }
public string? District { get; set; }
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... url-action
Мобильная версия