常用方法
常用方法
常用方法
常用方法
public async Task <ActionResult> GetCompra() { try { var dados = await _compraService.GetAllAsync(); return(Ok(dados)); } catch (Exception ex) { return(BadRequest(ex)); } }
public async Task <ActionResult> GetCompra() { try { var dados = await _compraService.GetAllAsync(); return(Ok(dados)); } catch (Exception ex) { return(BadRequest(ex)); } }