コード例 #1
0
        public AttachmentResponse GeAttachment(AttachmentRequest request)
        {
            AttachmentResponse response   = new AttachmentResponse();
            Attachment         attachment = attachmentRepository.FindBy(Convert.ToInt16(request.AttachmentViewModel.DocumentID));

            if (attachment != null)
            {
                AttachmentViewModel attachmentViewModel = Mapper.Map <Attachment, AttachmentViewModel>(attachment);
                response.AttachmentViewModel = attachmentViewModel;
            }
            return(response);
        }