コード例 #1
0
        public IActionResult Post(Newsletter newsletter)
        {
            try
            {
                _newsletterRepository.Adicionar(newsletter);


                return(Ok(newsletter));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }