public async Task <bool> DeleteNoticByUser(string id) { var list = await _db.Notifications.Where(x => x.Content == id).ToListAsync(); _db.RemoveRange(list); return(await _db.SaveChangesAsync() > 0); }