22 lines
		
	
	
		
			567 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			567 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Core.Abstractions.DomainObjects;
 | |
| using Core.Abstractions.Models;
 | |
| 
 | |
| namespace WeatherForecast.Models.Abstractions {
 | |
|   public abstract class PageSectionModelBase<T>  : ModelBase {
 | |
|     public string? Title { get; set; }
 | |
|     public string? Text { get; set; }
 | |
| 
 | |
|     public PageSectionModelBase() { }
 | |
| 
 | |
|     public PageSectionModelBase(PageSectionBase<T> pageSectionBase) {
 | |
|       Title = pageSectionBase.Title;
 | |
|       Text = pageSectionBase.Text;
 | |
|     }
 | |
| 
 | |
|     public PageSectionModelBase(string? title, string? text) {
 | |
|       Title = title;
 | |
|       Text = text;
 | |
|     }
 | |
|   }
 | |
| }
 |