void GetUsers() { if (!File.Exists(JsonFunctions.GetFilepath(filename))) { users = new List <User>(); JsonFunctions.WriteJSON(users, JsonFunctions.GetFilepath(filename)); return; } users = JsonFunctions.ReadUserJSON(JsonFunctions.GetFilepath(filename)); }
private List <User> GetAllUsers() { return(JsonFunctions.ReadUserJSON(JsonFunctions.GetFilepath(UserForm.filename))); }