public static GadgetDTO ToGadgetDTO(GadgetBO reportInfo) { GadgetDTO ReportDTO = new GadgetDTO(); ReportDTO.CreatedDate = reportInfo.CreatedDate; ReportDTO.EditedDate = reportInfo.EditedDate; ReportDTO.ReportId = reportInfo.ReportId; ReportDTO.GadgetVersion = reportInfo.GadgetVersion; // ReportDTO.SurveyId = reportInfo.SurveyId; ReportDTO.GadgetsScript = reportInfo.GadgetsScript; ReportDTO.GadgetHtml = reportInfo.ReportHtml; ReportDTO.GadgetId = reportInfo.GadgetId; ReportDTO.GadgetNumber = reportInfo.GadgetNumber; return(ReportDTO); }
public static GadgetBO ToGadgetBO(GadgetDTO gadget) { GadgetBO GadgetBO = new GadgetBO(); GadgetBO.CreatedDate = gadget.CreatedDate; GadgetBO.EditedDate = gadget.EditedDate; GadgetBO.ReportId = gadget.ReportId; GadgetBO.GadgetVersion = gadget.GadgetVersion; GadgetBO.GadgetsScript = gadget.GadgetsScript; GadgetBO.ReportHtml = gadget.GadgetHtml; GadgetBO.GadgetId = gadget.GadgetId; GadgetBO.GadgetNumber = gadget.GadgetNumber; return(GadgetBO); }