public async Task <IActionResult> GetAllproducts() { var products = await _productService.GetAll(); if (products == null && !products.Any()) { return(NotFound()); } return(new ObjectResult(products)); }
public async Task <IActionResult> GetAllCustomers() { var customers = await _customerService.GetAll(); if (customers == null && !customers.Any()) { return(NotFound()); } return(new ObjectResult(customers)); }
public async Task <IActionResult> GetAllCompanys() { var companys = await _companyService.GetAll(); if (companys == null && !companys.Any()) { return(NotFound()); } return(new ObjectResult(companys)); }
public async Task <IActionResult> GetAllorders() { var orders = await _orderService.GetAll(); if (orders == null && !orders.Any()) { return(NotFound()); } return(new ObjectResult(orders)); }
public async Task <IActionResult> GetAllstocks() { var stocks = await _stockService.GetAll(); if (stocks == null && !stocks.Any()) { return(NotFound()); } return(new ObjectResult(stocks)); }
async Task LoadClientsFromDatabase() { var result = await _clientBaseApplicationService.GetAll(); if (!result.Any()) { throw new ArgumentNullException(nameof(result), "Nenhum dado retornado"); } this.Clients = new ObservableCollection <Result>(result); }
public async Task MontaMenu() { Menus = await _menuService.GetAll(); }