Example #1
0
        private Guid CreateNewSet(Guid showId, out bool success)
        {
            success = false;
            SetService setService = new SetService(Ioc.GetInstance <ISetRepository>());

            Guid setId = Guid.NewGuid();

            Set newSet = new Set()
            {
                SetId     = setId,
                Encore    = false,
                Official  = false,
                SetNumber = 0,
                ShowId    = showId
            };

            setService.Save(newSet, out success);

            return(setId);
        }