public IActionResult Edit(int id, MemberViewModel model) { var member = _membersService.GetById(id); if (member != null && ModelState.IsValid) { member.Name = model.Name; member.LastName = model.LastName; member.Email = model.Email; member.Image = model.Image; member.ExternaId = model.ExternaId; member.Calification = model.Calification; //TODO : Paso 6 - Consumo el metodo commit _membersService.Commit(); return(RedirectToAction("Details", new { id = member.Id })); } return(View(model)); }