Example #1
0
        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));
        }
Example #3
0
 public IActionResult Get(int id)
 {
     return(Ok(
                _agendaService.Get(id)
                ));
 }
Example #4
0
        public IActionResult Get()
        {
            var lista = _service.Get();

            return(Ok(lista));
        }