Beispiel #1
0
 public IActionResult Post([FromBody] Categorias entity)
 {
     try
     {
         _contexto.Incluir(entity);
         return(Ok(entity));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }