public List <Car> GetAllCars() { CarMethods carService = new CarMethods(); var carList = carService.GetAllCars(); var newCarList = new List <Car>(); foreach (Domain.Car c in carList) { newCarList.Add(new Car { Id = c.Id, Brand = c.Brand, Model = c.Model, Year = c.Year, RegNr = c.RegNr }); } return(newCarList); }