添加项目文件。
This commit is contained in:
23
TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs
Normal file
23
TightWiki.Models/ViewModels/Admin/MenuItemViewModel.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using TightWiki.Models.DataModels;
|
||||
|
||||
namespace TightWiki.Models.ViewModels.Admin
|
||||
{
|
||||
public class MenuItemViewModel : ViewModelBase
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Link { get; set; } = string.Empty;
|
||||
public int Ordinal { get; set; }
|
||||
|
||||
public MenuItem ToDataModel()
|
||||
{
|
||||
return new MenuItem
|
||||
{
|
||||
Name = Name,
|
||||
Id = Id,
|
||||
Link = Link,
|
||||
Ordinal = Ordinal
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user