コード例 #1
0
        public ActionResult Edit(int id)
        {
            AddMobiles addMobiles = new AddMobiles();

            mobiles = mobileBL.Edit(id);
            return(View(addMobiles));
        }
コード例 #2
0
        public ActionResult Edit(int id)
        {
            BrandRepository repository = new BrandRepository();

            ViewBag.Brand = new SelectList(repository.ViewBrand(), "BrandID", "BrandName");

            Mobile editMobile = mobileBL.Edit(id);

            return(View(editMobile));
        }
コード例 #3
0
        public ActionResult Edit(int id)
        {
            BrandRepository            repository = new BrandRepository();
            IEnumerable <Entity.Brand> brand      = repository.ViewBrand();

            ViewBag.Brand = new SelectList(brand, "BrandID", "BrandName");

            Mobile editMobile = mobileBL.Edit(id);

            AddMobiles addMobile = AutoMapper.Mapper.Map <Mobile, AddMobiles>(editMobile);

            return(View(addMobile));
        }