Beispiel #1
0
        public ActionResult Update(ONhaCungCap model)
        {
            if (ModelState.IsValid)
            {
                var pro = nccService.Get(model.MaNCC);
                if (pro != null)
                {
                    try
                    {
                        nccService.Update(model);
                        return(RedirectToAction("Search", "QuanLyNCC"));
                    }
                    catch (Exception e)
                    {
                    }
                }
            }

            ViewBag.IsEdit = true;
            return(View(model));
        }