mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-01-14 01:25:38 -05:00
23 lines
401 B
C#
23 lines
401 B
C#
using System;
|
|
|
|
namespace FeedCenter
|
|
{
|
|
public partial class Category
|
|
{
|
|
public static Category Create()
|
|
{
|
|
return new Category { ID = Guid.NewGuid() };
|
|
}
|
|
|
|
public bool IsDefault
|
|
{
|
|
get { return Name == "< default >"; }
|
|
}
|
|
|
|
public int SortKey
|
|
{
|
|
get { return IsDefault ? 0 : 1; }
|
|
}
|
|
}
|
|
}
|