Esempio n. 1
0
        public async Task <ActionResult> Create(string act)
        {
            //Сохранить заказ в БД со всеми известными реквизитами.
            int   ordertype = (act == "Заказы") ? 0 : 1;
            Order ord       = await repo.GetNew(abzHash, ordertype);

            //Выбор материала
            return(RedirectToAction("Categ", "Good", new { ord = ord.OrderId }));
        }
Esempio n. 2
0
        public async Task <ActionResult> Create(string act)
        {
            //Сохранить заказ в БД со всеми известными реквизитами.
            int   ordertype = (act == "Заказы") ? 0 : 1;
            Order ord       = await repo.GetNew(abzHash, ordertype);

            Response.Cookies["Order"].Value   = ord.OrderId.ToString();
            Response.Cookies["Order"].Expires = DateTime.Now.AddHours(2);

            //Выбор материала
            return(RedirectToAction("Categ", "Good", new { ord = ord.OrderId }));
        }