Beispiel #1
0
        public async Task <IActionResult> ClearTimestamps()
        {
            _context.RemoveRange(_context.Timestamps.Where(t => t.AccountID == Account.ID).ToArray());

            await _context.SaveChangesAsync();

            Account.Timestamps.Clear();

            return(RedirectToAction("Summary", new { Id = Account.ID }));
        }