public void Init()
        {
            this.dbModel = ClassPropertyInitializator.SetProperties<db.OLEOPIEducationInformationPage>(new db.OLEOPIEducationInformationPage());
            this.dbModel.PreviousStudiesWorkExperienceStatus = db.OLEOPIWorkExperienceType.NotHaveexperience;

            this.webModel = ClassPropertyInitializator.SetProperties<OLEOPIEducationInformationPage>(new OLEOPIEducationInformationPage());
            this.webModel.EducationInstitution = ClassPropertyInitializator.SetProperties<OLEOPIEducationInstitutionBlock>(new OLEOPIEducationInstitutionBlock());
            this.webModel.StayingLongerResoning = ClassPropertyInitializator.SetProperties<OLEOPIStayingBlock>(new OLEOPIStayingBlock());
            this.webModel.PreviousStudiesAndWork = ClassPropertyInitializator.SetProperties<OLEOPIPreviousStudiesBlock>(new OLEOPIPreviousStudiesBlock());

            this.dbModel.Id = this.webModel.PageId;
        }
        /// <summary>
        /// Retrieves data from database and composes model of second page in OLE/OPI applications
        /// </summary>
        /// <param name="id">ID of OLE application</param>
        /// <returns>
        /// Loaded, prefilled OLE study Application second page model
        /// </returns>
        public OLEOPIEducationInformationPage GetEducationInformationPageModel(int id)
        {
            var tempmodel = this.databaseHelper.Get<db.OLEOPIEducationInformationPage>(o => o.ApplicationId == id);

            if (tempmodel == null)
            {
                tempmodel = new db.OLEOPIEducationInformationPage();
                tempmodel.ApplicationId = id;
                this.databaseHelper.Create<db.OLEOPIEducationInformationPage>(tempmodel);
            }

            OLEOPIEducationInformationPage model = tempmodel.ToWebModel();

            model.ApplicationId = id;
            model.FormProgress = this.GetFormProgressPrefill(FormType.OPIStudyResidencePermit);
            model.FormProgress.Pages[1].IsCurrent = true;
            return model;
        }