using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace RazorPagesMovie.Models
{
  public class ZAKAZNIK
  {
    public int ID { get; set; }
    public string JMENO { get; set; }
    public string PRIJMENI { get; set; }
    public string ULICE { get; set; }
    public string MESTO { get; set; }
    public string PSC { get; set; }
    public string IC { get; set; }
    public string DIC { get; set; }
    public string TELEFON { get; set; }
    public string EMAIL { get; set; }
    
    public ICollection<FAKTURA> Faktury { get; } = new List<FAKTURA>();

    public string PRAJM {
      get { return PRIJMENI + " " + JMENO; }
    }
  }
}