public IActionResult Edit(Guid?Id) { if (Id.HasValue) { return(View(GroupViewModel.GetGroupById(_repository, Id.Value))); } return(NotFound()); }