コード例 #1
0
        public async Task <IActionResult> InformationDetails(int InformationId)
        {
            try
            {
                var response = await _service.GetInformation(InformationId);

                if (response != null)
                {
                    return(Ok(response));
                }
                return(StatusCode(StatusCodes.Status204NoContent));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }