// GET api/SalesOrderApi/GetSalesOrderList
        public async Task <IHttpActionResult> GetSalesOrderList()
        {
            var salesOrders = await _salesOrderService.GetSalesOrderList();

            return(Ok(new { salesOrders = salesOrders }));
        }
        public async Task <ActionResult> Index()
        {
            var salesOrders = await _salesOrderService.GetSalesOrderList();

            return(View(salesOrders));
        }