refactoring

This commit is contained in:
2017-01-19 14:32:03 +01:00
parent 8f0a2439b7
commit 7f9d0e946b
7 changed files with 30 additions and 29 deletions

View File

@ -3,11 +3,12 @@ using System.IO;
using Microsoft.AspNet.Authorization;
using Yavsc.Models;
namespace Yavsc {
namespace Yavsc.ViewModel.Auth {
public class FileSpotInfo : IAuthorizationRequirement
{
public DirectoryInfo PathInfo { get; private set; }
public DirectoryInfo PathInfo { get; private set; }
public FileSpotInfo(string path, Blog b) {
PathInfo = new DirectoryInfo(path);
AuthorId = b.AuthorId;

View File

@ -1,5 +1,6 @@
using System.Security.Claims;
using Microsoft.AspNet.Authorization;
using Yavsc.ViewModel.Auth;
namespace Yavsc.ViewModels.Auth.Handlers
{