コード例 #1
0
        public async Task <IActionResult> GetMemberDetails()
        {
            List <MemberTypeDTO> lstMemberTypeDTO = new List <MemberTypeDTO>();

            try
            {
                lstMemberTypeDTO = await objmemtype.GetMemberTypeDetails(Con);

                return(lstMemberTypeDTO != null && lstMemberTypeDTO.Count > 0 ? Ok(lstMemberTypeDTO) : (IActionResult)StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));

                throw;
            }
        }