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