Beispiel #1
0
        public IActionResult EditName(string id, string name)
        {
            var model = new EditGroupNameInputViewModel()
            {
                Id = id, Name = name
            };

            return(this.View(model));
        }
Beispiel #2
0
        public async Task <IActionResult> EditName(EditGroupNameInputViewModel model)
        {
            await this.service.UpdateNameAsync(model.Id, model.Name);

            return(this.RedirectToAction("GroupDetails", new { id = model.Id }));
        }