private void LogHistory(LogUpdateSteps step, string status, string action)
        {
            var user    = WindowsIdentity.GetCurrent().Name;
            var history = new LogUpdateHistory
            {
                Idupdate   = step.Idupdate,
                FileTime   = DateTime.Now,
                FileBy     = user.Substring(user.IndexOf(@"\") + 1),
                Status     = status,
                FileAction = action + step.Step
            };

            _repo.Add(history);
        }
Esempio n. 2
0
        private void LogHistory(LogUpdateSteps step, string status, string action)
        {
            var user = this.httpContextAccessor.HttpContext.User.Identity.Name;

            user = user.Substring(user.IndexOf(@"\") + 1);
            var history = new LogUpdateHistory
            {
                Idupdate   = step.Idupdate,
                FileTime   = DateTime.Now,
                FileBy     = user.Substring(user.IndexOf(@"\") + 1),
                Status     = status,
                FileAction = action + step.Step
            };

            _repo.Add(history);
        }