public IHttpActionResult GetAgenda(string id) { var retorno = _agendaService.Get(id); if (!retorno.Status) { return(new InvalidListMessageResult(retorno.Message)); } return(Ok(retorno)); }
public async Task <IActionResult> Get(Guid id) { var result = await _service.Get(id); if (result == null) { _log.LogWarning($"Cannot find BusinessModel by id={id}"); return(NotFound($"Cannot find BusinessModel by id={id}")); } return(Ok(result)); }
public IActionResult Get(int id) { return(Ok( _agendaService.Get(id) )); }
public IActionResult Get() { var lista = _service.Get(); return(Ok(lista)); }