public async Task Delete(string deleteId) { string[] stuff = deleteId.Split("."); int fileId = int.Parse(stuff[0]); int arcId = int.Parse(stuff[1]); UserData me = NoteDataManager.GetUserData(_userManager, User, _db); List <Mark> list = await _db.Mark.Where(p => p.UserId == me.UserId && p.NoteFileId == fileId && p.ArchiveId == arcId).ToListAsync(); _db.RemoveRange(list); await _db.SaveChangesAsync(); }