예제 #1
0
		/// <summary>
		/// create
		/// 
		/// @return
		/// </summary>
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @RequestMapping(value = "", method = org.springframework.web.bind.annotation.RequestMethod.POST) @ResponseBody public com.baidu.dsp.common.vo.JsonObjectBase create(@Valid com.baidu.disconf.web.service.app.form.AppNewForm appNewForm)
		public virtual JsonObjectBase create(AppNewForm appNewForm)
		{

			LOG.info(appNewForm.ToString());

			appValidator.validateCreate(appNewForm);

			appMgr.create(appNewForm);

			return buildSuccess("创建成功");
		}
예제 #2
0
		public virtual App create(AppNewForm appNew)
		{

			App app = new App();
			app.Name = appNew.App;
			app.Desc = appNew.Desc;
			app.Emails = appNew.Emails;

			// 时间
			string curTime = DateUtils.format(DateTime.Now, DataFormatConstants.COMMON_TIME_FORMAT);
			app.CreateTime = curTime;
			app.UpdateTime = curTime;

			return appDao.create(app);
		}