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