Exemple #1
0
        public Cake Create(Cake cake)
        {
            _exDbContext.Cakes.Add(cake);

            _exDbContext.SaveChanges();

            return(cake);
        }
        public Car Create(Car car)
        {
            _exDbContext.Cars.Add(car);

            _exDbContext.SaveChanges();//Don´t forget this!

            return(car);
        }