public ActionResult Edit([Bind(Include = "RetailerID,Name,RetailerNumber,EmailID,Phone,AddressID")] Retailer retailer)
        {
            RetailerViewModel rt = new RetailerViewModel();
            RetailerDAL retailerBO = new RetailerDAL();

            if (ModelState.IsValid)
            {
                rt.allRetailers = retailerBO.ListRetailers();
                rt.retailer = retailer;

             //   ViewBag.AddressID = new SelectList(db.Addresses, "AddressID", "Address1", retailer.AddressID);
                //   ViewBag.RetailerID = new SelectList(db.Retailers, "RetailerID", "Name", store.RetailerID);
                return View("Index", rt);
            }
              //  ViewBag.AddressID = new SelectList(db.Addresses, "AddressID", "Address1", retailer.AddressID);
            //  ViewBag.RetailerID = new SelectList(db.Retailers, "RetailerID", "Name", store.RetailerID);
            return View("Index", rt);
        }
        public ActionResult Index()
        {
            RetailerViewModel retailer = new RetailerViewModel();

            RetailerDAL rd = new RetailerDAL();
            retailer.allRetailers = rd.ListRetailers();

            //ViewBag.AddressID = new SelectList(db.Addresses, "AddressID", "Address1");
            //      ViewBag.RetailerID = new SelectList(db.Retailers, "RetailerID", "Name");

            return View(retailer);
        }