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(); }
// GET LISTS ------------------------------------------------------------------------------------------------------------------------------- GET LISTS public List <Board> GetAllBoards() { return(boardJsonService.GetJsonObjects().ToList()); }