Пример #1
0
        public IActionResult OnPost()
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }
            Conflict.EmailID               = User.Identity.Name;
            Conflict.ConflictDate          = DateTime.Now.ToUniversalTime();
            Conflict.MostrecentjournalDate = DateTime.Now.ToUniversalTime();

            //_context.Conflict.Add(Conflict);
            //await _context.SaveChangesAsync();

            AuditTrail SD = new AuditTrail(_context);

            SD.CreateRecord(Conflict);

            return(RedirectToPage("./Index"));
        }