public async Task <IActionResult> Create(TeamsFormModel model) { await this.teams.CreateAsync(model.TeamName); return(RedirectToAction( nameof(Web.Controllers.HomeController.Index), "News", new { area = string.Empty })); }
public async Task <IActionResult> Edit(TeamsFormModel model) { await this.teams.EditAsync(model.Id, model.TeamName); TempData.AddSuccessMessage($"Role {model.TeamName} successfully edited!"); return(RedirectToAction( nameof(Web.Controllers.NewsController.Index), "News", new { area = string.Empty })); }