Ejemplo n.º 1
0
        public UserService(JsonFileService <User> jsonFileUserService)
        {
            JsonFileService = jsonFileUserService;

            // Use this if it's the first time the program is started or there is no Json file yet.
            //Users = MockUsers.GetMockUsers();
            // JsonFileService.SaveJsonObjects(Users);

            // Use this if you want to read from the existing Json file.
            Users = JsonFileService.GetJsonObjects().ToList();
        }
Ejemplo n.º 2
0
 // GET LISTS ------------------------------------------------------------------------------------------------------------------------------- GET LISTS
 public List <Board> GetAllBoards()
 {
     return(boardJsonService.GetJsonObjects().ToList());
 }