public VotableFeature CastVote(string votableFeatureId, bool voteUp)
{
var votableFeature = dataContext.FindById<VotableFeature>(votableFeatureId);
if (voteUp)
{
votableFeature.NumberOfUpvotes += 1;
}
else
{
votableFeature.NumberOfDownvotes += 1;
}
votableFeature.DateModified = DateTime.UtcNow;
return dataContext.Save(votableFeature, new ApplicationUser());
}
}