public IActionResult GetMidias() { try { var retorno = ItemAppService.ObterMidias(); if (retorno.Count() > 0) { return(Ok(retorno)); } else { return(NotFound()); } } catch (Exception ex) { return(BadRequest(ex.Message)); } }
public IActionResult GetMidias() { try { var retorno = ItemAppService.ObterMidias(); if (retorno.Count() > 0) { return(Ok(retorno)); } else { return(NotFound()); } } catch (Exception ex) { return(BadRequest(ex.Message)); } }