Beispiel #1
0
        public ActionResult RandomCreate(Character character)
        {
            try
            {
                // TODO: Add insert logic here
                var repo = new CharacterRepo();

                repo.AddRandomCharacter(character);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                return(View());
            }
        }