예제 #1
0
		public ActionResult EditMailConfig()
		{
			ModelState.Clear();
			var model = new EditModel_MailConfig();
			MailDb.CopyTo(model);
			if (!MailDb.Valid.GetValueOrDefault())
				ModelState.AddModelError("", MailDb.ValidationMessage);
			return View("EditMailConfig", model);
		}
예제 #2
0
		public ActionResult EditMailConfig(EditModel_MailConfig mailConfig)
		{
			if (!ModelState.IsValid)
				return View("EditMailConfig", mailConfig);
			mailConfig.CopyTo(MailDb);
			MailDb.Reevaluate();
			CsoContext.Db.SyncAnabolicChanges();
			return EditMailConfig();
		}