namespace Kreta.BusinessLogic.HelperClasses { using System; using Kreta.Enums.ManualEnums; public class TanevCO { public int Id { get; set; } public string Nev { get; set; } public DateTime KezdoNap { get; set; } public DateTime UtolsoNap { get; set; } public DateTime ElsoTanitasiNap { get; set; } public DateTime UtolsoTanitasiNap { get; set; } public DateTime UtolsoTanitasiNapVegzos { get; set; } public int Sorszam { get; set; } public bool IsAktiv { get; set; } public bool IsKovetkezo { get; set; } public bool IsKivalaszthato { get; set; } public FoglalkozasokRogziteseHetvegere FoglalkozasokRogziteseHetvegereEnum { private get; set; } public DateTime OraFelvetelKezdete { get { if (FoglalkozasokRogziteseHetvegereEnum == FoglalkozasokRogziteseHetvegere.Engedelyezett || FoglalkozasokRogziteseHetvegereEnum == FoglalkozasokRogziteseHetvegere.CsakSzombat) { return KezdoNap; } return ElsoTanitasiNap; } } } }