Skip to content

Commit

Permalink
Update Posts.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 28, 2024
1 parent 8160b07 commit 6f09171
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions MyApp.ServiceModel/Posts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,15 @@ public class CreateWorkerAnswer : IPost, IReturn<IdResponse>
public int? PostJobId { get; set; }
}

[ValidateHasRole(Roles.Moderator)]
public class RankAnswers : IPost, IReturn<IdResponse>
{
[ValidateGreaterThan(0)]
public int PostId { get; set; }

public Dictionary<string,int> Votes { get; set; }
}

[ValidateHasRole(Roles.Moderator)]
public class GetQuestionFile : IGet, IReturn<string>
{
Expand Down

0 comments on commit 6f09171

Please sign in to comment.