kreta/KretaWeb/Models/ZaradekBuborekModel.cs
2024-03-13 00:33:46 +01:00

34 lines
1,001 B
C#

using System;
using System.Collections.Generic;
namespace Kreta.Web.Models
{
public class ZaradekBuborekModel
{
public List<ZaradekSzovegModel> ZaradekokListaja { get; set; }
public string ZaradekSzovegek { get; set; }
public bool IsSzerkesztheto { get; set; }
public DateTime KeltezesDatuma { get; set; }
public DateTime UtolsoModositasDatuma { get; set; }
public int Id { get; set; }
public string OsztalyNev { get; set; }
public bool IsKapcsolodo { get; set; }
public bool IsTorolheto { get; set; }
public bool IsOsztaly { get; set; }
public static int Comparison(ZaradekBuborekModel x, ZaradekBuborekModel y)
{
return
x.KeltezesDatuma.Date == y.KeltezesDatuma.Date ?
x.UtolsoModositasDatuma.Date > y.UtolsoModositasDatuma.Date ? -1 : 1
:
x.KeltezesDatuma > y.KeltezesDatuma ? -1 : 1;
}
}
}