public async Task <IActionResult> Gather(string material, string difficulty) { var validEntry = _tasksService.IsGatheringTaskValid(material, difficulty); if (validEntry) { var userId = await _user.GetUserAsync(this.User); await _tasksService.GenerateGatheringTask(material, difficulty, userId.Id); return(this.RedirectToAction("AwaitGatherToComplete")); } else { return(this.RedirectToAction("Gather")); } }