コード例 #1
0
        public ActionResult Update(AddMobiles addMobiles)
        {
            if (ModelState.IsValid)
            {
                Mobile mobile = new Mobile();
                mobile.Brand   = mobile.Brand;
                mobile.Model   = mobile.Model;
                mobile.Battery = mobile.Battery;
                mobile.RAM     = mobile.RAM;
                mobile.ROM     = mobile.ROM;
                mobile.Price   = mobile.Price;

                mobileBL.update(mobile);
            }
            return(View());
        }