using cwebplusApp.Shared.Models; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace cwebplusApp.Shared.Services { public class ReportDataProvider { public Report Report { get; set; } public FoundReport GetFoundReport() { if (Report is FoundReport) { return (FoundReport)Report; } return null; } public MissingReport GetLostReport() { if (Report is MissingReport) { return (MissingReport)Report; } return null; } } }