public SingleResult <string> AddNewApp(AppDto appDto) { appServices.Insert(new Models.Application { ID = new Random().Next(100000, 999999), AccountID = new Random().Next(100000, 999999), AppId = new Random().Next(100000, 999999), AppName = appDto.AppName, AppSecret = MD5Helper.GetEncryptResult(appDto.AppName, appDto.AccountID + appDto.AppName), CreateTime = DateTime.Now }); return(new SingleResult <string> { Code = ResultCode.C1000, Message = "OK", }); }