public IActionResult AddQuest(Quest questToAdd)
 {
     if (ModelState.IsValid && questToAdd != null)
     {
         _questDAO.AddRecord(questToAdd);
         TempData["QuestMessage"] = $"You have successfully added the \"{questToAdd.Name}\" Quest!";
         return(RedirectToAction($"ViewAllQuests", $"Quest"));
     }
     Response.StatusCode  = 406;
     ViewBag.ErrorMessage = "Sorry, adding new Quest failed.";
     _logger.LogError($"Could not add the Quest to Db. Quest was null or Invalid");
     return(View($"Error"));
 }
 public IActionResult Create([FromForm] Group group)
 {
     group.GroupWallet = 0;
     _groupDAO.AddRecord(group);
     return(RedirectToAction("Index", "Group"));
 }