public async Task <ResponseModel <Round> > GetById([FromRoute] Guid id)
        {
            var result = await _roundService.GetById(id);

            return(new ResponseBuilder <Round>()
                   .Success()
                   .Data(result)
                   .Count(1)
                   .build());
        }
Exemplo n.º 2
0
        public ActionResult Get(int id)
        {
            Round roundResult;

            try
            {
                roundResult = _service.GetById(id);
            }
            catch (Exception e)
            {
                return(StatusCode(500, e));
            }

            return(Ok(roundResult));
        }