public ActionResult CreateOrder(OrderDetailsViewModel model, string button)
        {
            if (button == "Cancel")
            {
                return(RedirectToAction("Index", "Home"));
            }

            if (model == null || !ModelState.IsValid)
            {
                ViewBag.ErrorMessage = "Incorrect data";
                return(View());
            }

            dal.AddOrder(//todo pn самому не надоело поля прописывать? передавал бы объект класса, было бы проще
                model.OrderDate,
                model.RequiredDate,
                model.ShippedDate,
                model.Freight,
                model.ShipName,
                model.ShipAddress,
                model.ShipCity,
                model.ShipRegion,
                model.ShipPostalCode,
                model.ShipCountry);

            return(RedirectToAction("Index", "Home"));
        }