public async Task <ActionResult> EditSalesOrderRecord(string salesOrderId)
        {
            var salesOrderForm = await _salesOrderService.GetSalesOrderForm(salesOrderId);

            salesOrderForm.ViewMode = "Edit";

            return(View(salesOrderForm));
        }
        public async Task <IHttpActionResult> EditSalesOrderRecord(string salesOrderId)
        {
            var salesOrderForm = await _salesOrderService.GetSalesOrderForm(salesOrderId);

            return(Ok(new { salesOrderForm = salesOrderForm }));
        }