Ejemplo n.º 1
0
        public static void SubmitRating(RatingInputModel input, bool isAuthenticated)
        {
            input.Flags = input.Flags ?? new List <int>();

            input.Flags.Sort();

            if (isAuthenticated)
            {
                DbAccess.SaveGameRating(input);
            }
            else
            {
                DbAccess.SavePendingRating(input);
            }
        }