yavsc/Yavsc/ViewModels/Auth/FileSpotInfo.cs

25 lines
563 B
C#

8 years ago
using System.IO;
using Microsoft.AspNet.Authorization;
7 years ago
using Yavsc.Models.Blog;
8 years ago
8 years ago
namespace Yavsc.ViewModel.Auth {
8 years ago
public class FileSpotInfo : IAuthorizationRequirement
{
8 years ago
public DirectoryInfo PathInfo { get; private set; }
7 years ago
public FileSpotInfo(string path, BlogPost b) {
8 years ago
PathInfo = new DirectoryInfo(path);
AuthorId = b.AuthorId;
BlogEntryId = b.Id;
}
public string AuthorId { get; private set; }
public long BlogEntryId { get; private set; }
}
}