コード例 #1
0
        public AppSpecificationDataContract RegisterAppSpecification(AppSpecificationDataContract appSpecificationDataContract, int developerId)
        {
            var app = appSpecificationDataContract.ToApp();

            // set app intial state
            app.State       = AppState.Incomplete;
            app.Guid        = Guid.NewGuid();
            app.DeveloperId = developerId;
            // register app
            var savedApp = AppBiz.Create(app);

            _context.SaveChanges();

            return(savedApp.ToAppSpecificationDataContract());
        }
コード例 #2
0
 public void RegisterApp(AppDataContract appDataContract)
 {
     AppBiz.Create(appDataContract.ToApp());
     _context.SaveChanges();
 }