Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
Vigilans committed Sep 4, 2017
1 parent c0240ac commit 2b52da3
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
namespace HistoryContest.Server.Controllers.APIs
{
[Authorize(Roles = "Counselor, Administrator")]
[ValidateAntiForgeryToken]
//[ValidateAntiForgeryToken]
[Produces("application/json")]
[Route("api/[controller]")]
public class CounselorController : Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace HistoryContest.Server.Controllers.APIs
{
[Authorize(Roles = "Student, Administrator")]
[ValidateAntiForgeryToken]
//[ValidateAntiForgeryToken]
[Produces("application/json")]
[Route("api/[controller]")]
public class QuestionController : Controller
Expand Down
2 changes: 1 addition & 1 deletion HistoryContest.Server/Controllers/APIs/ResultController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
namespace HistoryContest.Server.Controllers.APIs
{
[Authorize]
[ValidateAntiForgeryToken]
//[ValidateAntiForgeryToken]
[Produces("application/json")]
[Route("api/[controller]")]
public class ResultController : Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
namespace HistoryContest.Server.Controllers.APIs
{
[Authorize(Roles = "Student, Administrator")]
[ValidateAntiForgeryToken]
//[ValidateAntiForgeryToken]
[Produces("application/json")]
[Route("api/[controller]")]
public class StudentController : Controller
Expand Down
1 change: 1 addition & 0 deletions HistoryContest.Server/Data/UnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public async Task SaveCacheToDataBase()
}
await DbContext.SaveChangesAsync();
var studentIDs = await Cache.Database.ListRangeAsync("StudentIDsToUpdate");
await Cache.Database.KeyDeleteAsync("StudentIDsToUpdate");
var studentTasks = studentIDs.Select(async ID => await Cache.StudentEntities(ID.ToString().ToDepartmentID()).GetAsync(ID));
foreach (var studentTask in studentTasks)
{
Expand Down
31 changes: 0 additions & 31 deletions HistoryContest.Server/HistoryContest.sln

This file was deleted.

File renamed without changes.

0 comments on commit 2b52da3

Please sign in to comment.