19 lines
469 B
C#
19 lines
469 B
C#
using Contracts.ViewModels;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
|
|
namespace WebApp.Pages
|
|
{
|
|
[AllowAnonymous]
|
|
public class IndexModel : PageModel
|
|
{
|
|
public List<ProductViewModel> ProductsModel { get; set; }
|
|
|
|
public void OnGet()
|
|
{
|
|
ProductsModel = APIClient.GetRequest<List<ProductViewModel>>($"Product/GetFullList");
|
|
}
|
|
}
|
|
}
|