Пример #1
0
        public static LogTime MapToLogTime(LogTimeModel model)
        {
            LogTime logtime = new LogTime();

            if (model != null)
            {
                logtime.LogTimeID  = model.LogTimeID;
                logtime.EmployeeID = model.EmployeeID;
                logtime.EmployeeNo = model.EmployeeNo;
                logtime.LoggedTime = model.LoggedTime;
                logtime.LogType    = model.LogType;
                logtime.IsInTime   = model.IsInTime;
            }
            return(logtime);
        }
Пример #2
0
        public static LogTimeModel MapToLogTimeModel(LogTime logtime)
        {
            LogTimeModel model = new LogTimeModel();

            if (logtime != null)
            {
                model.LogTimeID  = logtime.LogTimeID;
                model.EmployeeID = logtime.EmployeeID;
                model.EmployeeNo = logtime.EmployeeNo;
                model.LoggedTime = logtime.LoggedTime;
                model.LogType    = logtime.LogType;
                model.IsInTime   = logtime.IsInTime;
            }
            return(model);
        }