public ActionResult Create(VehicleInformationCreate model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new VehicleInformationService(userId);

            service.CreateVehicleInformation(model);

            return(RedirectToAction("Index"));
        }
        public bool CreateVehicleInformation(VehicleInformationCreate model)
        {
            var entity =
                new VehicleInformation()
            {
                VehicleInformationId  = model.VehicleInformationId,
                NewVehicleInformation = model.NewVehicleInformation
            };

            using (var ctx = new ApplicationDbContext())
            {
                ctx.VehicleInformations.Add(entity);
                return(ctx.SaveChanges() == 1);
            }
        }