Ejemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            AddMobiles addMobiles = new AddMobiles();

            mobiles = mobileBL.Edit(id);
            return(View(addMobiles));
        }
Ejemplo n.º 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));
        }
        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));
        }