public async Task <IActionResult> GetSalesOrders(SalesOrdersRequestParams requestParam) { try { var response = await _salesOrdersService.GetSalesOrders(requestParam); if (response.ET_DATA.Count <= 0) { return(BadRequest()); } else { return(Ok(response)); } } catch (Exception ex) { throw; } }
public async Task <IActionResult> GetSalesOrders(SalesOrdersRequestParams requestParam) { SalesOrdersDetailsResponse response = await _isalesOrdersService.GetSalesOrders(requestParam); return(Ok(response)); }