//private readonly string tempFilePath = "D:\\master an 2\\css\\c\\temp.csv";
        public IEnumerable <TModel> GetAll()
        {
            var entities = new List <TModel>();

            using (var reader = iOFactory.CreateReader(FilePath))
            {
                while (!reader.EndOfStream)
                {
                    var line = reader.ReadLine();
                    if (!string.IsNullOrEmpty(line))
                    {
                        var fields = line.Split(',');
                        var entity = CreateEntity(fields);
                        entities.Add(entity);
                    }
                }
            }
            return(entities);
        }