Example #1
0
        public async Task <IActionResult> Post(string id, [FromBody] Lance lance)
        {
            try
            {
                await _service.AdicionarLance(id, lance);

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