using System; using System.Collections.Generic; namespace Kreta.Web.Models { public class ZaradekBuborekModel { public List 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; } } }