public IActionResult Edit(Member model)
        {
            string errorMessage = string.Empty;

            if (ModelState.IsValid)
            {
                // TODO : Get Org Id from Claims
                var memberObj = new Church.API.Models.Contributor()
                {
                    OrganizationId = 2, ContributorId = model.Id, FirstName = model.FirstName, LastName = model.LastName, FamilyName = model.FamilyName
                };

                var apiContributors = new Church.API.Client.ApiCallerMember(_apiUrl.SSChurch);

                try
                {
                    apiContributors.PutUpdateMember(memberObj.ContributorId, memberObj);
                }
                catch (Exception ex)
                {
                    errorMessage = ex.Message;
                    ModelState.AddModelError("MemberError", errorMessage);
                }
            }

            ViewBag.ErrorMessage = errorMessage;

            return(PartialView("_AddMemberModalPartial", model));
        }
        protected Church.API.Models.Contributor DeleteMember(int id, out string errorMsg)
        {
            errorMsg = string.Empty;
            Church.API.Models.Contributor member = null;

            var apiMember = new Church.API.Client.ApiCallerMember("http://localhost:448/");

            try
            {
                member = apiMember.DeleteMember(id);
            }
            catch (Exception ex)
            {
                errorMsg = ex.Message;
            }

            return(member);
        }