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()); }
public ActionResult Get(int id) { Round roundResult; try { roundResult = _service.GetById(id); } catch (Exception e) { return(StatusCode(500, e)); } return(Ok(roundResult)); }