async public Task Delete(Guid id) { Forum forum = await db.Categories.FindAsync(id); db.Categories.Remove(forum); await dbSave.Save(db); }
async public Task Delete(Guid id) { MainThemes mainThemes = await db.MainThemes.FindAsync(id); db.MainThemes.Remove(mainThemes); await dbSave.Save(db); }
async public Task Delete(Guid id) { ReplyModel replyModel = db.Replies.Find(id); db.Replies.Remove(replyModel); await dbSave.Save(db); }
async public Task Delete(Guid id) { MainArticleModel mainArticleModel = db.MainArticles.Find(id); db.MainArticles.Remove(mainArticleModel); await dbSave.Save(db); }
async public Task Delete(Guid id) { string guid = id.ToString(); ApplicationUser applicationUser = db.Users.Find(guid); db.Users.Remove(applicationUser); await dbSave.Save(db); }