/// <summary> /// Fills the a list with the info from a data source, in this case - a file. /// </summary> /// <returns></returns> public List <TEntity> GetFromDataSource() { using (StreamReader reader = new StreamReader(PathToDataSource)) { string jsonFileInput = reader.ReadToEnd(); Data = JsonTranslator.JsonToList <TEntity>(jsonFileInput); return(Data); } }