public void Create(string city,string country, string street, int house, int flat, string firstName, string name, string lastName, string telephone) { adress adress = context.adresses.Create(); CityDAO cityDAO = new CityDAO(); adress.idCity = cityDAO.FindCity(city, country); adress.street = street; adress.house = house; adress.flat = flat; PersonDAO personDAO = new PersonDAO(); adress.idPerson = personDAO.FindPerson(firstName,name,lastName,telephone); context.adresses.Add(adress); context.SaveChanges(); }