31 lines
926 B
C#
31 lines
926 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Kreta.BusinessLogic.Classes;
|
|
|
|
namespace Kreta.BusinessLogic.HelperClasses
|
|
{
|
|
public class TanuloTantargyiAtlagCo
|
|
{
|
|
public int TanuloId { get; set; }
|
|
|
|
public string TanuloNev { get; set; }
|
|
|
|
public string TanuloOktatasiAzonosito { get; set; }
|
|
|
|
public string TanuloSzuletesiHely { get; set; }
|
|
|
|
public DateTime TanuloSzuletesiIdo { get; set; }
|
|
|
|
public string TanuloAnyjaNeve { get; set; }
|
|
|
|
public int TantargyId { get; set; }
|
|
|
|
public string TantargyNev { get; set; }
|
|
|
|
public string OsztalyCsoportNev { get; set; }
|
|
|
|
public List<(int Osztalyzat, int? Suly)> TanuloErtekelesOsztalyzatList { get; set; }
|
|
|
|
public double Atlag => TanuloErtekelesOsztalyzatList.Count > 0 ? TanuloErtekelesOsztalyzatList.WeightedAverage(x => x.Osztalyzat, x => x.Suly ?? 100, 2) ?? 0.00 : 0.00;
|
|
}
|
|
}
|