PWA Fundvelo der Caritas.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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. }