Пример #1
0
        public async Task Execute(Guid id0, int id1)
        {
            var feature = await oneContext.Features.SingleAsync(x => x.StoryId == id0 && x.Id == id1);

            oneContext.Remove(feature);
            await oneContext.SaveChangesAsync();
        }
Пример #2
0
        public async Task Execute(Guid id)
        {
            var story = await context.Stories.SingleAsync(x => x.Id == id);

            context.Remove(story);
            await context.SaveChangesAsync();
        }
Пример #3
0
        public async Task Execute(Guid id0, int id1)
        {
            var option = await oneContext.Options.SingleAsync(x => x.StoryId == id0 &&
                                                              x.Id == id1);

            oneContext.Remove(option);
            await oneContext.SaveChangesAsync();
        }
Пример #4
0
        public async Task Execute(Guid id0, int id1, int id2, int id3)
        {
            var optionValue = await oneContext.OptionValues
                              .SingleAsync(x => x.StoryId == id0 &&
                                           x.FeatureId == id1 &&
                                           x.OptionId == id2 &&
                                           x.OptionValueType.Equals(id3));

            oneContext.Remove(optionValue);
            await oneContext.SaveChangesAsync();
        }