public IActionResult Delete(long memberPk)
        {
            MemberPcp deleteMembership = repository.DeleteMembership(memberPk);

            if (deleteMembership != null)
            {
                TempData["message"] = $"{deleteMembership.MemberName} was deleted";
            }
            return(RedirectToAction("Index"));
        }
 public IActionResult Edit(MemberPcp memberPcp)
 {
     if (ModelState.IsValid)
     {
         repository.SaveMembership(memberPcp);
         TempData["message"] = $"{memberPcp.MemberName} has been saved";
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View(memberPcp));
     }
 }