diff --git a/Project-Unite/Controllers/ContestsController.cs b/Project-Unite/Controllers/ContestsController.cs index e878bf7..1cc7070 100644 --- a/Project-Unite/Controllers/ContestsController.cs +++ b/Project-Unite/Controllers/ContestsController.cs @@ -201,7 +201,7 @@ public ActionResult SubmitEntry(SubmitContestEntryViewModel model) entry.ContestId = model.ContestId; entry.VideoId = model.VideoID; string allowed = "abcdefghijklmnopqrstuvwxyz1234567890_"; - entry.Id = entry.Name.ToLower(); + entry.Id = entry.Name.ToLower() + "_" + db.ContestEntries.Count().ToString(); foreach (var ch in entry.Id.ToCharArray()) if (!allowed.Contains(ch)) entry.Id = entry.Id.Replace(ch, '_');