コード例 #1
0
        public IActionResult Edit(EditNoticeViewModel model)
        {
            if (ModelState.IsValid)
            {
                Notice notice = new Notice();
                notice.Title   = model.Title;
                notice.Content = model.Content;
                notice.No      = model.No;

                if (_noticeBll.UpdateNotice(notice))
                {
                    return(Redirect("Index"));
                }
            }
            return(View());
        }