Пример #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;
        }