mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Add discriminator to skin IDs
This commit is contained in:
parent
db70be6c4b
commit
f03f01f3c9
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ public ActionResult PostSkin(CreateSkinViewModel model)
|
|||
id = id.Replace(c, '_');
|
||||
}
|
||||
|
||||
skin.Id = id;
|
||||
skin.Id = id + "_" + db.Skins.Count().ToString();
|
||||
skin.Name = model.Title;
|
||||
skin.ShortDescription = model.ShortDescription;
|
||||
skin.PostedAt = DateTime.Now;
|
||||
|
|
Loading…
Reference in a new issue