public void ResetUin(uint clientCode, string reason)
        {
            var client = Client.FindAndCheck <Client>(clientCode);

            AuditRecord.ReseteUin(client, reason).Save();
            client.ResetUin();
            RedirectToReferrer();
        }
        public void ResetUin(uint id, string reason)
        {
            var user = DbSession.Load <User>(id);

            DbLogHelper.SetupParametersForTriggerLogging(new {
                ResetIdCause = reason
            });
            AuditRecord.ReseteUin(user, reason).Save();
            user.ResetUin();
            Notify("УИН сброшен");
            RedirectToReferrer();
        }