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 })); }
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 })); }