Beispiel #1
0
        public IActionResult Post([FromRoute] Exame exame)
        {
            if (exame == null)
            {
                return(BadRequest());
            }


            try {
                _exameService.AddAsync(exame);
                return(CreatedAtRoute("GetExame", new { id = exame.Id }, exame));
            } catch (Exception e) {
                Console.WriteLine(e.Message);
                throw;
            }
        }