public ActionResult AddNews(DataModel dataModel) { dataModel.SelectedNewsItem.Created = DateTime.Now; if (dataModel.SelectedNewsItem.Id == 0) { NewsItems.InsertNewsItem(dataModel.SelectedNewsItem); } else { NewsItems.UpdateNewsItem(dataModel.SelectedNewsItem); } return(RedirectToAction("NewsList", "News")); }