Ejemplo n.º 1
0
        public async Task CreateWidget(
            string name,
            string owner,
            string logo,
            string welcomeMessage,
            string primaryColor,
            string teamIntro,
            string backgroundColor,
            string objectConfigs)
        {
            var entity = new Widget(name, owner, logo, welcomeMessage, teamIntro, primaryColor, backgroundColor, objectConfigs);

            await _widgetRepository.InsertAsync(entity);

            await _widgetRepository.SaveChange();
        }