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; }
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); }