using ElectroShop.DAL.Entities;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Filters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Messaging;
using System.Threading.Tasks;

namespace ElectroShop.Models
{
    public class ElectronicComponentModel
    {
        public int Id { get; set; }

        public string Name { get; set; }

        public string ParametersValues { get; set; }

        public int NumberAvailable { get; set; }

        public string ImgBase64 { get; set; }

        public Guid ImgId { get; set; }

        public Guid DatasheetId { get; set; }

        public bool IsDatasheetSet => DatasheetId != Guid.Empty;

        public bool IsImgSet => ImgId != Guid.Empty;


        //Cizí klíč
        public int ElectronicComponentCategoryId { get; set; }
        public ElectronicComponentCathegoryModel ElectronicComponentCategory { get; set; }
    }
}
