public ActionResult Create([Bind("ixOutboundOrderLine,sOutboundOrderLine,ixOutboundOrder,sOrderLineReference,ixMaterial,sBatchNumber,sSerialNumber,nBaseUnitQuantityOrdered,nBaseUnitQuantityShipped,ixStatus")] OutboundOrderLinesPost outboundorderlines)
        {
            if (ModelState.IsValid)
            {
                outboundorderlines.UserName = User.Identity.Name;
                _outboundorderlinesService.Create(outboundorderlines);
                return(RedirectToAction("Index"));
            }
            ViewBag.ixMaterial      = new SelectList(_outboundorderlinesService.selectMaterials().Select(x => new { x.ixMaterial, x.sMaterial }), "ixMaterial", "sMaterial");
            ViewBag.ixOutboundOrder = new SelectList(_outboundorderlinesService.selectOutboundOrders().Select(x => new { x.ixOutboundOrder, x.sOutboundOrder }), "ixOutboundOrder", "sOutboundOrder");
            ViewBag.ixStatus        = new SelectList(_outboundorderlinesService.selectStatuses().Select(x => new { x.ixStatus, x.sStatus }), "ixStatus", "sStatus");

            return(View(outboundorderlines));
        }