Exemplo n.º 1
0
        public ActionResult UseAlias()
        {
            Alias alias = new Alias();

            if (String.IsNullOrEmpty(Request.Form["usealias"]))
            {
                TempData["selectedalias"] = new Alias()
                {
                    isnew = true
                };
            }
            else
            {
                if (Request.Form["alias"] == "")
                {
                    return(View("CreateAlias"));
                }
                alias       = AliasManager.FindAliasByName(Request.Form["alias"]);
                alias.isnew = false;
                TempData["selectedalias"] = alias;
            }
            return(RedirectToAction("CheckOut", "Products"));
        }