Example #1
0
        // GET: /Customer/Create
        public ActionResult Create()

        {
            if (!caSession.AuthoriseSession())
            {
                return(Redirect((string)Session["ErrorUrl"]));
            }

            AccountAddressSessionInit();
            ViewBag.AccountAddresses = new List <AccountAddresses>();
            ViewBag.AccountContacts  = new List <AccountContacts>();

            var taxes = _lookupServices.GetAllValidGlobalTaxes().ToList();

            ViewBag.TaxID = new SelectList(taxes, "TaxID", "TaxName", taxes.Select(x => x.TaxID).FirstOrDefault());

            return(View());
        }