//protected virtual new Common.CustomPrincipal User
        //{
        //    get => HttpContext.User as Common.CustomPrincipal;
        //}

        public virtual void Log(string Message, FunctionType Type = FunctionType.NoRecord, string user = "")
        {
            StackFrame frame  = new StackFrame(1, true);
            var        method = frame.GetMethod();

            SystemLog record = new SystemLog();

            record.Message      = Message;
            record.Controller   = method.ReflectedType.Name;
            record.Action       = method.Name;
            record.FunctionType = Enum.GetName(typeof(FunctionType), Type);

            //record.User = string.IsNullOrEmpty(user) ? User.Name : user;
            record.UserIPAddress = Request.ServerVariables["REMOTE_ADDR"];;
            //record.CreateAt = DateTime.Now;
            _systemLogService.Log(record);
        }