示例#1
0
        public IActionResult Post([FromBody] Dominio.DTO.Secret newSecret)
        {
            try
            {
                _secretRepository.Incluid(newSecret);

                return(Created("api/Secret", newSecret));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.ToString()));
            }
        }