public async Task <ActionResult> GroupEditCorporateContact(EditGroupCorporateContactViewModel model)
        {
            var result = await new EditGroupCorporateContactViewModelValidator().ValidateAsync(model);

            if (ModelState.IsValid)
            {
                var groupResult = await _groupReadService.GetAsync(model.GroupUId.Value, User);

                if (groupResult.Success)
                {
                    var group = groupResult.ReturnValue;
                    group.CorporateContact = model.CorporateContact;
                    var updatedGroup = new SaveGroupDto(group);
                    var validation   = await _groupWriteService.SaveAsync(updatedGroup, User);

                    if (!validation.HasErrors)
                    {
                        var url = Url.RouteUrl("GroupDetails", new { id = model.GroupUId, saved = true });
                        return(Redirect($"{url}#governance"));
                    }
                    validation.ApplyToModelState(ControllerContext);
                }
            }
            else
            {
                result.EduBaseAddToModelState(ModelState, null);
            }

            await _layoutHelper.PopulateLayoutProperties(model, null, model.GroupUId, User);

            return(View(model));
        }
        public async Task <ActionResult> GroupEditCorporateContact(int groupUId)
        {
            var group = await _groupReadService.GetAsync(groupUId, User);

            if (group.Success)
            {
                var model = new EditGroupCorporateContactViewModel
                {
                    CorporateContact = group.ReturnValue.CorporateContact
                };

                await _layoutHelper.PopulateLayoutProperties(model, null, groupUId, User);

                return(View(model));
            }
            return(RedirectToRoute("GroupEditGovernance", new { GroupUId = groupUId }));
        }