Ejemplo n.º 1
0
 public IActionResult Post([FromBody] Pos pos)
 {
     try
     {
         return(Created("Post", _rabbitService.AddQueue(pos)));
     }
     catch (Exception ex)
     {
         logger.LogError(ex.Message);
         return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }