public IActionResult CheckDuplicateMemberTypeCode(string MemberTypeCode) { try { int count = objmemtype.GetMembercodeCount(MemberTypeCode, Con); return(Ok(count)); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw; } }