public IActionResult SaveMemberParams(Member newMember) { MemberServices memberService = new MemberServices(); string returnValue = memberService.SaveMember(newMember); if (returnValue.Equals("success")) { HttpContext.Session.SetInt32("memberId", newMember.MemberId); } return(Content(returnValue)); }