示例#1
0
        public IHttpActionResult GetAgenda(string id)
        {
            var retorno = _agendaService.Get(id);

            if (!retorno.Status)
            {
                return(new InvalidListMessageResult(retorno.Message));
            }

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

            return(Ok(lista));
        }