init
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user