Пример #1
0
        public void SaveToDatabase(Car model)
        {
            Car car = new Car()
            {
                Name       = model.Name,
                Year       = model.Year,
                Manufactor = model.Manufactor,
                Image      = model.Image
            };

            CarDB carDB = new CarDB();

            carDB.AddCar(car, User.Identity.GetUserName());
        }