Ejemplo n.º 1
0
        public async Task <IActionResult> CreateInformation(Infonet infonet)
        {
            try
            {
                var response = await _service.CreateInformation(infonet);

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