Add discriminator to skin IDs

This commit is contained in:
Michael 2017-04-12 19:06:47 -04:00
parent db70be6c4b
commit f03f01f3c9

View file

@ -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;