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()); }
public void RegisterApp(AppDataContract appDataContract) { AppBiz.Create(appDataContract.ToApp()); _context.SaveChanges(); }