public Car DeleteCar(int id) { var carToDelete = _carShopContext.Remove(new Car { CarId = id }).Entity; _carShopContext.SaveChanges(); return(carToDelete); }