public ActionResult Edit(int id, KinhDichModel kinhDichModel) { try { // TODO: Add update logic here var result = SimSoDepRepository.SaveKinhDich(kinhDichModel); return(RedirectToAction("Index")); } catch { return(View()); } }
public ActionResult Create(KinhDichModel kinhDichModel) { try { // TODO: Add insert logic here var result = SimSoDepRepository.SaveKinhDich(kinhDichModel); return(RedirectToAction("Index")); } catch { return(View()); } }