public int CreateEmployee(CreateEmployeeViewModel input) { var employee = _employeeRepository.CreateEmployee(input.PositionId, input.ProjectId, input.LastName, input.MiddleName, input.FirstName, input.DateOfBirth, input.Gender, input.Nationality, input.Languages, input.NationalIdentificationNumber); _employeeRepository.AddContactInformation(employee.Id, input.Address, input.City, input.PostalCode, input.State, input.WorkPhone, input.PrivatePhone, input.WorkEmail, input.PrivateEmail); _employeeRepository.AddEmploymentInformation(employee.Id, input.EmploymentDate, input.JubileeDate, input.DateForFormalProfessionalCompetence, input.DateForFormalTeachingSkills); _employeeRepository.AddFinancialInformation(employee.Id, input.Salary, input.NextSalaryIncrease, input.AccountNumber, input.Bank); return(employee.Id); }