public ListingViewModel(ListsRepository repository, UpdateSocket updateSocket)
 {
     this.repository   = repository;
     this.updateSocket = updateSocket;
     NewList           = new CheckListAdd();
     Add = new Command(async() => await _add());
 }
Exemplo n.º 2
0
 public TravelService(DbSettings dbSettings)
 {
     TravelRepository   = new TravelRepository(dbSettings);
     LocationRepository = new LocationRepository(dbSettings);
     FlightRepository   = new FlightRepository(dbSettings);
     HotelRepository    = new HotelRepository(dbSettings);
     CityWalkRepository = new CityWalkRepository(dbSettings);
     PoiRepository      = new PoiRepository(dbSettings);
     DayPlanRepository  = new DayPlanRepository(dbSettings);
     TourRepository     = new TourRepository(dbSettings);
     ListsRepository    = new ListsRepository(dbSettings);
     HotelsApiClient    = new HotelsApiClient();
     TriposoApiClient   = new TriposoApiClient();
 }
Exemplo n.º 3
0
        // PUT: api/Lists/5
        public int Put(int id, [FromBody] ListsModel list)
        {
            var result = ListsRepository.Get(id);

            if (result.Item1 != null)
            {
                var resultId = ListsRepository.NewList(list.Title);

                return(resultId);
            }
            else
            {
                ListsRepository.UpdateList(id, list.Title);
            }

            return(0);
        }
Exemplo n.º 4
0
 public ListsService(ListsRepository repo)
 {
     _repo = repo;
 }
 public ListsController(ListsRepository service)
 {
     _repository = service;
 }
 public TasksService(TasksRepository repo, ListsRepository ls)
 {
     _repo = repo;
     _ls = ls;
 }
Exemplo n.º 7
0
 public ListsController()
 {
     this.listsRepository = new ListsRepository();
 }
Exemplo n.º 8
0
 public ListWishesService(ListWishesRepository repo, ListsRepository lrepo, WishesRepository wrepo)
 {
     _repo  = repo;
     _lrepo = lrepo;
     _wrepo = wrepo;
 }
 public ListProfilesService(ListProfilesRepository repo, ListsRepository lr)
 {
     _repo = repo;
     _lr   = lr;
 }
Exemplo n.º 10
0
 // DELETE: api/Lists/5
 public void Delete(int id)
 {
     ListsRepository.DeleteList(id);
 }
Exemplo n.º 11
0
        // POST: api/Lists
        public int Post([FromBody] ListsModel list)
        {
            var id = ListsRepository.NewList(list.Title);

            return(id);
        }
Exemplo n.º 12
0
        // GET: api/Lists/5
        public Tuple <ListsModel, List <PagesModel>, List <TasksModel> > Get(int id)
        {
            var results = ListsRepository.Get(id);

            return(results);
        }
Exemplo n.º 13
0
        // GET: api/Lists
        public IEnumerable <ListsModel> Get()
        {
            var lists = ListsRepository.GetAll();

            return(lists);
        }