public ActionResult AddEnterprise(EnterpriseDto model) { var result = new StandardJsonResult <string>(); result.Try(() => { if (!ModelState.IsValid) { throw new KnownException(ModelState.GetFirstError()); } model.Deleted = false; model.RegistDate = DateTime.Now; model.UpdateTime = DateTime.Now; model.RegistDate = DateTime.Now; string value = _ieIEnterprise.AddEnterprise(model); result.Value = value; }); return(result); }