Beispiel #1
0
        public ActionResult Create(ONhaCungCap model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    nccService.Add(model);
                    return(RedirectToAction("Search", "QuanLyNCC"));
                }
                catch (Exception e)
                {
                }
            }

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