コード例 #1
0
        async public Task Delete(Guid id)
        {
            Forum forum = await db.Categories.FindAsync(id);

            db.Categories.Remove(forum);
            await dbSave.Save(db);
        }
コード例 #2
0
        async public Task Delete(Guid id)
        {
            MainThemes mainThemes = await db.MainThemes.FindAsync(id);

            db.MainThemes.Remove(mainThemes);
            await dbSave.Save(db);
        }
コード例 #3
0
        async public Task Delete(Guid id)
        {
            ReplyModel replyModel = db.Replies.Find(id);

            db.Replies.Remove(replyModel);
            await dbSave.Save(db);
        }
コード例 #4
0
        async public Task Delete(Guid id)
        {
            MainArticleModel mainArticleModel = db.MainArticles.Find(id);

            db.MainArticles.Remove(mainArticleModel);
            await dbSave.Save(db);
        }
コード例 #5
0
        async public Task Delete(Guid id)
        {
            string          guid            = id.ToString();
            ApplicationUser applicationUser = db.Users.Find(guid);

            db.Users.Remove(applicationUser);
            await dbSave.Save(db);
        }