Пример #1
0
		public LoadModalityForEditResponse LoadModalityForEdit(LoadModalityForEditRequest request)
		{
			// note that the version of the ModalityRef is intentionally ignored here (default behaviour of ReadOperation)
			var m = PersistenceContext.Load<Modality>(request.ModalityRef);
			var assembler = new ModalityAssembler();
			return new LoadModalityForEditResponse(assembler.CreateModalityDetail(m));
		}
Пример #2
0
        public LoadModalityForEditResponse LoadModalityForEdit(LoadModalityForEditRequest request)
        {
            // note that the version of the ModalityRef is intentionally ignored here (default behaviour of ReadOperation)
            var m         = PersistenceContext.Load <Modality>(request.ModalityRef);
            var assembler = new ModalityAssembler();

            return(new LoadModalityForEditResponse(assembler.CreateModalityDetail(m)));
        }