WIP
This commit is contained in:
parent
96dcf5c4f4
commit
0d8fd0606f
60 changed files with 874 additions and 209 deletions
24
Yavsc/ViewModels/Auth/FileSpotInfo.cs
Normal file
24
Yavsc/ViewModels/Auth/FileSpotInfo.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
|
||||
using System.IO;
|
||||
using Microsoft.AspNet.Authorization;
|
||||
using Yavsc.Models;
|
||||
|
||||
namespace Yavsc {
|
||||
|
||||
public class FileSpotInfo : IAuthorizationRequirement
|
||||
{
|
||||
public DirectoryInfo PathInfo { get; private set; }
|
||||
public FileSpotInfo(string path, Blog b) {
|
||||
PathInfo = new DirectoryInfo(path);
|
||||
AuthorId = b.AuthorId;
|
||||
BlogEntryId = b.Id;
|
||||
}
|
||||
public string AuthorId { get; private set; }
|
||||
public long BlogEntryId { get; private set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue