public async Task<IHttpActionResult> Put(MailConfigInfo info)
 {
     if (!ModelState.IsValid)
         return BadRequest(ModelState);
     info.UpdateTime = DateTime.Now;
     GlobalApplicationObject.Current.ApplicationContext.ConfigManager.SaveConfig<MailConfigInfo>(info);
     return Ok(info);
 }
        public async Task<IHttpActionResult> Post(MailConfigInfo info)
        {
            if (!ModelState.IsValid)
                return BadRequest(ModelState);
            info.UpdateTime = DateTime.Now;

            ApplicationContext.ConfigManager.SaveConfig<MailConfigInfo>(info);
            return Created<MailConfigInfo>("api/config/MailConfigInfo", info);
        }