// ReSharper disable once FunctionComplexityOverflow
 public void OwnerAcceptApplicationByApplicationId(int pendingApplicationId)
 {
     var pendingApplication = UnitofWork.OwnerPendingApplicationRepository.
         FirstOrDefault(x => x.ApplicationId == pendingApplicationId);
     if (pendingApplication == null) return;
     var approvedapplication = new OwnerAcceptedApplication
     {
         FirstName = pendingApplication.FirstName,
         LastName = pendingApplication.LastName,
         MiddleName = pendingApplication.MiddleName,
         SocialSecurityNumber = pendingApplication.SocialSecurityNumber,
         DriverLicense = pendingApplication.DriverLicense,
         Phone = pendingApplication.Phone,
         CellPhone = pendingApplication.CellPhone,
         EmailAddress = pendingApplication.EmailAddress,
         CoSignerName = pendingApplication.CoSignerName,
         CoSignerAddress = pendingApplication.CoSignerAddress,
         CoSignerCity = pendingApplication.CoSignerCity,
         CoSignerState = pendingApplication.CoSignerState,
         CoSignerZipcode = pendingApplication.CoSignerZipcode,
         CoSignerPhone = pendingApplication.CoSignerPhone,
         CoSignerRelationShip = pendingApplication.CoSignerRelationShip,
         CoSignerEmailAddress = pendingApplication.CoSignerEmailAddress,
         OtherOccupant1Name = pendingApplication.OtherOccupant1Name,
         IsOccupant1Adult = pendingApplication.IsOccupant1Adult,
         RelationshipOccupant1ToApplicant = pendingApplication.RelationshipOccupant1ToApplicant,
         OtherOccupant2Name = pendingApplication.OtherOccupant2Name,
         IsOccupant2Adult = pendingApplication.IsOccupant2Adult,
         RelationshipOccupant2ToApplicant = pendingApplication.RelationshipOccupant2ToApplicant,
         OtherOccupant3Name = pendingApplication.OtherOccupant3Name,
         IsOccupant3Adult = pendingApplication.IsOccupant3Adult,
         RelationshipOccupant3ToApplicant = pendingApplication.RelationshipOccupant3ToApplicant,
         OtherOccupant4Name = pendingApplication.OtherOccupant4Name,
         IsOccupant4Adult = pendingApplication.IsOccupant4Adult,
         RelationshipOccupant4ToApplicant = pendingApplication.RelationshipOccupant4ToApplicant,
         EmployerName = pendingApplication.EmployerName,
         Income = pendingApplication.Income,
         WorkStartDate = pendingApplication.WorkStartDate,
         WorkEndDate = pendingApplication.WorkEndDate,
         EmployerAddress = pendingApplication.EmployerAddress,
         EmployerCity = pendingApplication.EmployerCity,
         EmployerState = pendingApplication.EmployerState,
         EmployerZipcode = pendingApplication.EmployerZipcode,
         EmployerPhone = pendingApplication.EmployerPhone,
         EmployerFax = pendingApplication.EmployerFax,
         CurrentLandloard = pendingApplication.CurrentLandloard,
         CurrentLandLoardPhone = pendingApplication.CurrentLandLoardPhone,
         CurrentLandLoardFax = pendingApplication.CurrentLandLoardFax,
         CurrentAddress = pendingApplication.CurrentAddress,
         CurrentAddressCity = pendingApplication.CurrentAddressCity,
         CurrentAddressState = pendingApplication.CurrentAddressState,
         CurrentAddressZip = pendingApplication.CurrentAddressZip,
         Rent = pendingApplication.Rent,
         CurrentRentStartDate = pendingApplication.CurrentRentStartDate,
         CurrentRentEndDate = pendingApplication.CurrentRentEndDate,
         PreviousLandloard = pendingApplication.PreviousLandloard,
         PreviousLandLoardPhone = pendingApplication.PreviousLandLoardPhone,
         PreviousLandLoardFax = pendingApplication.PreviousLandLoardFax,
         PreviousAddress = pendingApplication.PreviousAddress,
         PreviousAddressCity = pendingApplication.PreviousAddressCity,
         PreviousAddressState = pendingApplication.PreviousAddressState,
         PreviousAddressZip = pendingApplication.PreviousAddressZip,
         PreviousRent = pendingApplication.PreviousRent,
         PreviousRentStartDate = pendingApplication.PreviousRentStartDate,
         PreviousRentEndDate = pendingApplication.PreviousRentEndDate,
         EmergencyContactName = pendingApplication.EmergencyContactName,
         EmergencyContactRelationShip = pendingApplication.EmergencyContactRelationShip,
         EmergencyContactPhone = pendingApplication.EmergencyContactPhone,
         EmergencyContactAddress = pendingApplication.EmergencyContactAddress,
         EmergencyContactCity = pendingApplication.EmergencyContactCity,
         EmergencyContactState = pendingApplication.EmergencyContactState,
         EmergencyContactZipCode = pendingApplication.EmergencyContactZipCode,
         Pets = pendingApplication.Pets,
         PetsNumber = pendingApplication.PetsNumber,
         Pet1Brand = pendingApplication.Pet1Brand,
         Pet1Age = pendingApplication.Pet1Age,
         Pet1Weight = pendingApplication.Pet1Weight,
         Pet2Brand = pendingApplication.Pet2Brand,
         Pet2Age = pendingApplication.Pet2Age,
         Pet2Weight = pendingApplication.Pet2Weight,
         Vehicle1Make = pendingApplication.Vehicle1Make,
         Vehicle1Model = pendingApplication.Vehicle1Model,
         Vehicle1Year = pendingApplication.Vehicle1Year,
         Vehicle1Color = pendingApplication.Vehicle1Color,
         Vehicle1LicensePlate = pendingApplication.Vehicle1LicensePlate,
         Vehicle2Make = pendingApplication.Vehicle2Make,
         Vehicle2Model = pendingApplication.Vehicle2Model,
         Vehicle2Year = pendingApplication.Vehicle2Year,
         Vehicle2Color = pendingApplication.Vehicle2Color,
         Vehicle2LicensePlate = pendingApplication.Vehicle2LicensePlate,
         Vehicle3Make = pendingApplication.Vehicle3Make,
         Vehicle3Model = pendingApplication.Vehicle3Model,
         Vehicle3Year = pendingApplication.Vehicle3Year,
         Vehicle3Color = pendingApplication.Vehicle3Color,
         Vehicle3LicensePlate = pendingApplication.Vehicle3LicensePlate,
         Vehicle4Make = pendingApplication.Vehicle4Make,
         Vehicle4Model = pendingApplication.Vehicle4Model,
         Vehicle4Year = pendingApplication.Vehicle4Year,
         Vehicle4Color = pendingApplication.Vehicle4Color,
         Vehicle4LicensePlate = pendingApplication.Vehicle4LicensePlate,
         Bankruptcy = pendingApplication.Bankruptcy,
         LeaseDefaulted = pendingApplication.LeaseDefaulted,
         RefusedtoPayRent = pendingApplication.RefusedtoPayRent,
         EvictedFromRental = pendingApplication.EvictedFromRental,
         ConvictedofFelony = pendingApplication.ConvictedofFelony,
         TenantId = pendingApplication.TenantId,
         OwnerId = pendingApplication.OwnerId
     };
     UnitofWork.OwnerAcceptedApplicationRepository.Add(approvedapplication);
     UnitofWork.OwnerPendingApplicationRepository.Delete(pendingApplication);
     UnitofWork.Save();
 }
        public OwnerAcceptedApplication FirstOwnerAcceptedApplication()
        {
            var firstOwnerAcceptedApplication = new OwnerAcceptedApplication {

                 ApplicationId = new Int32()
            ,
                 FirstName = null,
                 LastName = null,
                 MiddleName = null,
                 DateofBirth = new DateTime(),
                 SocialSecurityNumber = null,
                 DriverLicense = null,
                 Phone = null,
                 CellPhone = null,
                 EmailAddress = null,
                 CoSignerName = null,
                 CoSignerAddress = null,
                 CoSignerCity = null,
                 CoSignerState = null,
                 CoSignerZipcode = null,
                 CoSignerPhone = null,
                 CoSignerRelationShip = null,
                 CoSignerEmailAddress = null,
                 OtherOccupant1Name = null,
                 IsOccupant1Adult = new Boolean(),
                 RelationshipOccupant1ToApplicant = null,
                 OtherOccupant2Name = null,
                 IsOccupant2Adult = new Boolean(),
                 RelationshipOccupant2ToApplicant = null,
                 OtherOccupant3Name = null,
                 IsOccupant3Adult = new Boolean(),
                 RelationshipOccupant3ToApplicant = null,
                 OtherOccupant4Name = null,
                 IsOccupant4Adult = new Boolean(),
                 RelationshipOccupant4ToApplicant = null,
                 EmployerName = null,
                 Income = null,
                 WorkStartDate = new DateTime(),
                 WorkEndDate = new DateTime(),
                 EmployerAddress = null,
                 EmployerCity = null,
                 EmployerState = null,
                 EmployerZipcode = null,
                 EmployerPhone = null,
                 EmployerFax = null,
                 CurrentLandloard = null,
                 CurrentLandLoardPhone = null,
                 CurrentLandLoardFax = null,
                 CurrentAddress = null,
                 CurrentAddressCity = null,
                 CurrentAddressState = null,
                 CurrentAddressZip = null,
                 Rent = null,
                 CurrentRentStartDate = new DateTime(),
                 CurrentRentEndDate = new DateTime(),
                 PreviousLandloard = null,
                 PreviousLandLoardPhone = null,
                 PreviousLandLoardFax = null,
                 PreviousAddress = null,
                 PreviousAddressCity = null,
                 PreviousAddressState = null,
                 PreviousAddressZip = null,
                 PreviousRent = null,
                 PreviousRentStartDate = new DateTime(),
                 PreviousRentEndDate = new DateTime(),
                 EmergencyContactName = null,
                 EmergencyContactRelationShip = null,
                 EmergencyContactPhone = null,
                 EmergencyContactAddress = null,
                 EmergencyContactCity = null,
                 EmergencyContactState = null,
                 EmergencyContactZipCode = null,
                 Pets = new Boolean(),
                 PetsNumber = new Int32(),
                 Pet1Brand = null,
                 Pet1Age = new Int32(),
                 Pet1Weight = null,
                 Pet2Brand = null,
                 Pet2Age = new Int32(),
                 Pet2Weight = null,
                 Vehicle1Make = null,
                 Vehicle1Model = null,
                 Vehicle1Year = new Int32(),
                 Vehicle1Color = null,
                 Vehicle1LicensePlate = null,
                 Vehicle2Make = null,
                 Vehicle2Model = null,
                 Vehicle2Year = new Int32(),
                 Vehicle2Color = null,
                 Vehicle2LicensePlate = null,
                 Vehicle3Make = null,
                 Vehicle3Model = null,
                 Vehicle3Year = new Int32(),
                 Vehicle3Color = null,
                 Vehicle3LicensePlate = null,
                 Vehicle4Make = null,
                 Vehicle4Model = null,
                 Vehicle4Year = new Int32(),
                 Vehicle4Color = null,
                 Vehicle4LicensePlate = null,
                 Bankruptcy = new Boolean(),
                 LeaseDefaulted = new Boolean(),
                 RefusedtoPayRent = new Boolean(),
                 EvictedFromRental = new Boolean(),
                 ConvictedofFelony = new Boolean(),
                 TenantId = new Int32(),
                 OwnerId = new Int32()

             };

            return firstOwnerAcceptedApplication;
        }