private void RaisePublicReplyAddInteractionRequest(object itemBody) { if (itemBody == null || string.IsNullOrEmpty(itemBody.ToString())) { return; } var item = new CommunicationItemPublicReplyViewModel(); item.Body = itemBody.ToString(); AppendCommunicationItem(item, true, false); NewBody = string.Empty; }
public CommunicationItemPublicReplyViewModel PublicReply2PublicReplyViewModel(PublicReplyItem item) { CommunicationItemPublicReplyViewModel retVal=new CommunicationItemPublicReplyViewModel(); retVal.Id = item.CommunicationItemId; retVal.AuthorName = item.AuthorName; retVal.Body = item.Body; retVal.LastModified = item.LastModified; return retVal; }
public PublicReplyItem PublicReplyViewModel2PublicReplyItem(CommunicationItemPublicReplyViewModel viewModel) { PublicReplyItem retVal=new PublicReplyItem(); retVal.AuthorName = viewModel.AuthorName; retVal.Body = viewModel.Body; retVal.Title = viewModel.Title; if (viewModel.Id != null) retVal.CommunicationItemId = viewModel.Id; return retVal; }
private void RaisePublicReplyAddInteractionRequest(object itemBody) { if (itemBody == null || string.IsNullOrEmpty(itemBody.ToString())) return; var item = new CommunicationItemPublicReplyViewModel(); item.Body = itemBody.ToString(); AppendCommunicationItem(item, true, false); NewBody = string.Empty; }