public ActionResult Create(Sys_NoticeVO notice) { try { // TODO: Add insert logic here Sys_NoticeDAC dac = new Sys_NoticeDAC(); if (dac.InsertSys_Notice(notice)) { return(RedirectToAction("Index")); //인서트가 성공적으로 됐다면. 목록으로 가라 indexview가 목록임. } else { return(View("Create", notice)); //인서트가성공안되면 내가 써논 값을 가지고 create를 하기위해서 } } catch { return(View()); } }
// GET: Sys_Notice/Edit/5 public ActionResult Edit(int id) { Sys_NoticeDAC dac = new Sys_NoticeDAC(); return(View(dac.GetDetailsSys_Notice(id, false))); }
/// <summary> /// 현재 공지사항 가져오기 /// </summary> /// <param name="Seq"></param> /// <returns></returns> public Sys_NoticeVO GetCurrentSysNotice(int Seq) { Sys_NoticeDAC dac = new Sys_NoticeDAC(); return(dac.GetCurrentSysNotice(Seq)); }
public List <Sys_NoticeVO> GetDayAllSys_notice(string start, string end) { Sys_NoticeDAC dac = new Sys_NoticeDAC(); return(dac.GetDayAllSys_notice(start, end)); }
public List <Sys_NoticeVO> GetAllSys_notice() { Sys_NoticeDAC dac = new Sys_NoticeDAC(); return(dac.GetAllSys_notice()); }
/// <summary> /// 상단 메세지 상세목록 /// </summary> /// <returns></returns> public ActionResult Message() { Sys_NoticeDAC dac = new Sys_NoticeDAC(); return(PartialView(dac.Sys_noticeAll())); }