public ModelRegexTutorial() { regexTutorialID = Guid.Parse(ConfigurationManager.AppSettings.Get(EnumAppSettings.RegexTutorialID.ToString())); regexTutorial = bizRegexTutorial.GetByID(regexTutorialID); regexTutorialCatalog = bizRegexTutorialCatalog.ListByTutorialID(regexTutorialID); }
public ActionResult Save(RegexTutorial model) { model.CreateDate = DateTime.Now; bizRegexTutorial.SaveOrUpdate(model); return RedirectToAction("Index"); }