yavsc/Yavsc/ViewModels/Auth/FileSpotInfo.cs

25 lines
554 B
C#

8 years ago
using System.IO;
using Microsoft.AspNet.Authorization;
using Yavsc.Models;
8 years ago
namespace Yavsc.ViewModel.Auth {
8 years ago
public class FileSpotInfo : IAuthorizationRequirement
{
8 years ago
public DirectoryInfo PathInfo { get; private set; }
8 years ago
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; }
}
}