diff options
| author | Michael <[email protected]> | 2017-05-23 11:28:30 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-23 11:28:30 -0400 |
| commit | 90a96d093b5beaf9c0d6e632cec9752e97b55ad3 (patch) | |
| tree | c57ce123c9d08c6499f55730ca812cd4d78903f1 | |
| parent | 52d46877c988edc471cd8ed15c290c8af77db5b2 (diff) | |
| download | project-unite-90a96d093b5beaf9c0d6e632cec9752e97b55ad3.tar.gz project-unite-90a96d093b5beaf9c0d6e632cec9752e97b55ad3.tar.bz2 project-unite-90a96d093b5beaf9c0d6e632cec9752e97b55ad3.zip | |
add unite discriminator to entry id
| -rw-r--r-- | Project-Unite/Controllers/ContestsController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ namespace Project_Unite.Controllers 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, '_'); |
