예제 #1
0
        public ProcedureEntryEntity ConvertToEntity(ProcedureEntryModel entity)
        {
            if (entity == null)
                return null;

            var model = new ProcedureEntryEntity(entity.Id);
            model.Comment = entity.Comment;
            model.Lenght = entity.Lenght;
            model.Time = entity.Time;
            model.Description = entity.Description;
            return model;
        }
예제 #2
0
        public async Task<ProcedureEntryModel> ConvertToModel(ProcedureEntryEntity entity)
        {
            if (entity == null)
                return null;

            var model = new ProcedureEntryModel(entity.Id);
            model.Comment = entity.Comment;
            model.Lenght = entity.Lenght;
            model.Time = entity.Time;
            model.Description = entity.Description;

            return model;
        }