public void Create(LocationModel model) { var newLocation = new Location { Id = model.Id, Country = model.Country, City = model.City, PostalCode = model.PostalCode, Street = model.Street }; locationsRepository.Create(newLocation); }