public bool InsertMovie(Movie movie) { List <Movie> movieCatalog = new List <Movie>(); try { var jsonObject = _jsonHelper.GetJSonString(); movieCatalog = JsonConvert.DeserializeObject <List <Movie> >(jsonObject); movieCatalog.Add(movie); var asdf = JsonConvert.SerializeObject(movieCatalog); _jsonHelper.SaveJSonString(JsonConvert.SerializeObject(movieCatalog)); } catch (Exception ex) { ex.LogExceptionToFile("Error.txt"); throw ex; } return(true); }