diff --git a/Yavsc/Controllers/CircleController.cs b/Yavsc/Controllers/CircleController.cs index b1bc133db..f439d7624 100644 --- a/Yavsc/Controllers/CircleController.cs +++ b/Yavsc/Controllers/CircleController.cs @@ -1,7 +1,6 @@ -using System.Linq; + using System.Threading.Tasks; using Microsoft.AspNet.Mvc; -using Microsoft.AspNet.Mvc.Rendering; using Microsoft.Data.Entity; using Yavsc.Models; using Yavsc.Models.Relationship; diff --git a/Yavsc/Controllers/CircleMemberController.cs b/Yavsc/Controllers/CircleMemberController.cs index de14f13ac..bc8f76ea6 100644 --- a/Yavsc/Controllers/CircleMemberController.cs +++ b/Yavsc/Controllers/CircleMemberController.cs @@ -1,7 +1,6 @@ -using System.Linq; + using System.Threading.Tasks; using Microsoft.AspNet.Mvc; -using Microsoft.AspNet.Mvc.Rendering; using Microsoft.Data.Entity; using Yavsc.Models; using Yavsc.Models.Relationship; diff --git a/Yavsc/ViewModels/Auth/FileSpotInfo.cs b/Yavsc/ViewModels/Auth/FileSpotInfo.cs index 78c079caa..1f1abf2b3 100644 --- a/Yavsc/ViewModels/Auth/FileSpotInfo.cs +++ b/Yavsc/ViewModels/Auth/FileSpotInfo.cs @@ -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; diff --git a/Yavsc/ViewModels/Auth/Handlers/PostUserFileHandler.cs b/Yavsc/ViewModels/Auth/Handlers/PostUserFileHandler.cs index e72a34616..d03f39fc0 100644 --- a/Yavsc/ViewModels/Auth/Handlers/PostUserFileHandler.cs +++ b/Yavsc/ViewModels/Auth/Handlers/PostUserFileHandler.cs @@ -1,5 +1,6 @@ using System.Security.Claims; using Microsoft.AspNet.Authorization; +using Yavsc.ViewModel.Auth; namespace Yavsc.ViewModels.Auth.Handlers { diff --git a/Yavsc/Views/FrontOffice/Book.cshtml b/Yavsc/Views/FrontOffice/Book.cshtml index 9acda2a1a..33a8c4aa9 100644 --- a/Yavsc/Views/FrontOffice/Book.cshtml +++ b/Yavsc/Views/FrontOffice/Book.cshtml @@ -7,7 +7,7 @@ @foreach (var profile in Model) {