Пример #1
0
 public ActionResult Edit(int id, KinhDichModel kinhDichModel)
 {
     try
     {
         // TODO: Add update logic here
         var result = SimSoDepRepository.SaveKinhDich(kinhDichModel);
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Пример #2
0
        public ActionResult Create(KinhDichModel kinhDichModel)
        {
            try
            {
                // TODO: Add insert logic here
                var result = SimSoDepRepository.SaveKinhDich(kinhDichModel);

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }