public bool AddPostCardResponse(PostCardResponse postCardResponse) { if (_postCardResponses.Count() >= _paperColumn * _paperRow) { return(false); } _postCardResponses.Add(postCardResponse); return(true); }
public static PostCardInfo TranlateToPostCard(this PostCardResponse postCardResponse) { var result = new PostCardInfo { ProductFileId = postCardResponse.ProductFileId, FileId = postCardResponse.FileId, FileName = postCardResponse.FileName, BackFileId = postCardResponse.BackFileId, BackProductFileId = postCardResponse.BackProductFileId, BackStyle = new BackStyleInfo { FileId = postCardResponse.BackFileId, Name = postCardResponse.BackStyle }, Copy = postCardResponse.Copy, FrontStyle = postCardResponse.FrontStyle, PostCardId = postCardResponse.Id, ProcessorName = postCardResponse.ProcessorName, ProcessStatusText = postCardResponse.ProcessStatusText, // ProcessStatus = (PostCardProcessStatusEnum) postCardResponse.ProcessStatus }; return(result); }