mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 18:47:28 -05:00
Move application files to sub-folder
This commit is contained in:
22
Application/Feeds/Category.cs
Normal file
22
Application/Feeds/Category.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user