public int CreateAddressAndGetId(AddressModel model) { var address = new Address { AddressLine1 = model.AddressLine1, AddressLine2 = model.AddressLine2, City = model.City, Postcode = model.Postcode, Province = model.Province }; return(addressRepo.CreateAddressandGetId(address)); }