Пример #1
0
        public bool Insert(int PersonId, bool IsSuccess, string UserIP, string UserName, DateTime DateCreated)
        {
            UserMonitorDAC usermonitorComponent = new UserMonitorDAC();
            int            UserMonitorId        = 0;

            return(usermonitorComponent.InsertNewUserMonitor(ref UserMonitorId, PersonId, IsSuccess, UserIP, UserName, DateCreated));
        }
Пример #2
0
        public bool Insert(UserMonitor usermonitor)
        {
            int            autonumber           = 0;
            UserMonitorDAC usermonitorComponent = new UserMonitorDAC();
            bool           endedSuccessfuly     = usermonitorComponent.InsertNewUserMonitor(ref autonumber, usermonitor.PersonId, usermonitor.IsSuccess, usermonitor.UserIP, usermonitor.UserName, usermonitor.DateCreated);

            if (endedSuccessfuly)
            {
                usermonitor.UserMonitorId = autonumber;
            }
            return(endedSuccessfuly);
        }