Ejemplo n.º 1
0
        public MainViewAdress()
        {
            var adress = new AdresService();

            AdressList = adress.GetAdress();
            VoteUp     = new Command <postVM>((model) => {
                AdressList[AdressList.IndexOf(model)].Vote++;
                AdressList.Add(new postVM
                {
                    Date      = new DateTime(2019, 12, 27),
                    Photo     = ImageSource.FromResource("HackUpp.images.coronavirus.jpg"),
                    Title     = "COVID-18",
                    Publisher = new User()
                    {
                        PhotoProfil = ImageSource.FromResource("HackUpp.images.fekiyoussef.png"),
                        Username    = "******",
                        Sid9        = 9
                    },
                    Vote        = 500,
                    Description = "https://www.who.int/fr/emergencies/diseases/novel-coronavirus-2019 \n" +
                                  "https://www.who.int/fr/emergencies/diseases/novel-coronavirus-2019/advice-for-public",
                    Subtitle = "Le premier infecterpar un nouveautype de coronavirus qui apparut de nouveau dans le monde. Un grand risque d'aprés l'Organisation mondiale de santé"
                });
                AdressList = AdressList;
            });
            VoteDown = new Command <postVM>((model) => {
                AdressList[AdressList.IndexOf(model)].Vote--;
            });
        }
Ejemplo n.º 2
0
        public BaseController()
        {
            _unitOfWork    = new UnitOfWork();
            _duyuruService = new DuyuruService(_unitOfWork);
            _galeriService = new GaleriService(_unitOfWork);
            _adresService  = new AdresService(_unitOfWork);

            CreateIndex();
        }
Ejemplo n.º 3
0
 public AdresController()
 {
     _adresService = new AdresService(_unitOfWork);
 }