Пример #1
0
        public App(string dbPath)
        {
            InitializeComponent();
            FlowListView.Init();

            var navPage = new NavigationPage(new LandingPage());

            navPage.BarBackgroundColor = Color.Transparent;
            navPage.BarTextColor       = Color.White;

            MainPage = navPage;

            FavRepo        = new FavRepository(dbPath);
            VoteRepo       = new VoteRepo(dbPath);
            LoggedInClubId = 0;
        }
Пример #2
0
 public void DeleteFav(int fguid)
 {
     FavRepository.DelFav(fguid);
 }
Пример #3
0
 public void Post([FromForm] tblfav fav)
 {
     FavRepository.AddFav(fav);
 }
Пример #4
0
 public List <tblfav> Get(string userid, string type)
 {
     return(FavRepository.GetFavByUseridAndType(userid, type));
 }
Пример #5
0
 public List <tblfav> Get(string userid)
 {
     return(FavRepository.GetFavByUserid(userid));
 }
Пример #6
0
 public List <tblfav> Get()
 {
     return(FavRepository.Get());
 }