PWA Fundvelo der Caritas.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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