public SlideModel() { ContentOfSlide = new ContentModel() { ContentId = Guid.NewGuid()}; TitleOfSlide = new TitleModel() { TitleId = Guid.NewGuid()}; FonColor = "ffffff"; PresentationId = Guid.Empty; SlideNumber = 0; SlideId = Guid.NewGuid(); }
public static Content GetFromContentModel(ContentModel contentModel) { var content = new Content() { ContentId = contentModel.ContentId, Font = contentModel.Font, FontColor = contentModel.FontColor, FontSize = Int32.Parse(contentModel.FontSize), FontStyle = contentModel.FontStyle, Text = contentModel.Text }; return content; }
public static ContentModel CreateFromContent(Content content) { var contentModel = new ContentModel(); contentModel.Font = content.Font; contentModel.FontColor = content.FontColor; contentModel.FontSize = content.FontSize.ToString(); contentModel.FontStyle = content.FontStyle; contentModel.Text = content.Text; contentModel.ContentId = content.ContentId; return contentModel; }