PWA Fundvelo der Caritas.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ReportDataProvider.cs 661B

12345678910111213141516171819202122232425262728
  1. using cwebplusApp.Shared.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace cwebplusApp.Shared.Services {
  7. public class ReportDataProvider {
  8. public Report Report { get; set; }
  9. public FoundReport GetFoundReport() {
  10. if (Report is FoundReport) {
  11. return (FoundReport)Report;
  12. }
  13. return null;
  14. }
  15. public MissingReport GetLostReport() {
  16. if (Report is MissingReport) {
  17. return (MissingReport)Report;
  18. }
  19. return null;
  20. }
  21. }
  22. }