Example #1
0
        public async Task <ActionResult> Add(AddPlayerViewModel bot)
        {
            try
            {
                await _playerService.AddBot(bot);

                return(RedirectToAction("Index"));

                return(View());
            }
            catch (Exception e)
            {
                return(View("Error"));
            }
        }