31 lines
762 B
C#
31 lines
762 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using FakturyWeb.Data;
|
|
using RazorPagesMovie.Models;
|
|
|
|
namespace FakturyWeb.Pages.Faktury
|
|
{
|
|
public class IndexModel : PageModel
|
|
{
|
|
private readonly FakturyWeb.Data.FakturyWebContext _context;
|
|
|
|
public IndexModel(FakturyWeb.Data.FakturyWebContext context)
|
|
{
|
|
_context = context;
|
|
}
|
|
|
|
public IList<FAKTURA> FAKTURA { get;set; }
|
|
|
|
public async Task OnGetAsync()
|
|
{
|
|
FAKTURA = await _context.FAKTURA
|
|
.Include(f => f.ZAKAZNIK).ToListAsync();
|
|
}
|
|
}
|
|
}
|