public async Task <IActionResult> GetSavingMemberTypeDetails() { List <MemberTypeDTO> lstMemberTypeDTO = new List <MemberTypeDTO>(); try { lstMemberTypeDTO = await objmemtype.GetSavingMemberTypeDetails(Con); return(lstMemberTypeDTO != null && lstMemberTypeDTO.Count > 0 ? Ok(lstMemberTypeDTO) : (IActionResult)StatusCode(StatusCodes.Status204NoContent)); } catch (Exception) { return(StatusCode(StatusCodes.Status500InternalServerError)); throw; } }