コード例 #1
0
        public virtual BOTimestampCheck MapEFToBO(
            TimestampCheck ef)
        {
            var bo = new BOTimestampCheck();

            bo.SetProperties(
                ef.Id,
                ef.Name,
                ef.Timestamp);
            return(bo);
        }
コード例 #2
0
        public virtual BOTimestampCheck MapModelToBO(
            int id,
            ApiTimestampCheckRequestModel model
            )
        {
            BOTimestampCheck boTimestampCheck = new BOTimestampCheck();

            boTimestampCheck.SetProperties(
                id,
                model.Name,
                model.Timestamp);
            return(boTimestampCheck);
        }