public ActionResult Create(Issue newissue) { if (ModelState.IsValid) { newissue.CreatedDate = DateTime.Now; issue.AddIssue(newissue); return(RedirectToAction("Index")); } else { return(View(newissue)); } }
public ActionResult Create(Issue newissue) { if (ModelState.IsValid) { newissue.CreatedDate = DateTime.Now; issue.AddIssue(newissue); return(RedirectToAction("Index")); } else { return(View(newissue)); } }