public int ResetPhoto(User resetAuthor) { if (resetAuthor.Role != UserRole.Moderator && resetAuthor.Role != UserRole.Admin) throw new ModeratorsRightsRequiredException(); return PhotoId = -1; }