Пример #1
0
        public void AddPicture(int id, string name, string path)
        {
            Car c = Cars.FirstOrDefault(x => x.Id == id);

            if (c != null)
            {
                c.AddPicture(new Picture()
                {
                    Name     = name,
                    FilePath = path
                });
            }
        }