/// <summary> /// Delete SectionParagraph /// </summary> /// <param name="request">sectionParagraph request.</param> /// <returns>SectionParagraph message.</returns> public SectionParagraphMessage DeleteSectionParagraph(SectionParagraphRequest request) { SectionParagraphMessage message = new SectionParagraphMessage(); try { _serviceSectionParagraph.DeleteSectionParagraph(request.ToPivot()); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }
/// <summary> /// Get list of SectionParagraph /// </summary> /// <returns>SectionParagraph message.</returns> public SectionParagraphMessage GetAllSectionParagraphs() { SectionParagraphMessage message = new SectionParagraphMessage(); try { message = _serviceSectionParagraph.GetAllSectionParagraphs().ToMessage(); message.OperationSuccess = true; } catch (Exception e) { message.ErrorType = ErrorType.TechnicalError; message.ErrorMessage = e.Message; } return(message); }