public void ApplyJob(ApplyForJobModel applyForJobModel)
        {
            ApplyForjob applyForjob = new ApplyForjob();

            applyForJobModel.CompanyName  = "Mindtree";
            applyForjob.CompanyName       = applyForJobModel.CompanyName;
            applyForjob.CandidatName      = applyForJobModel.CandidatName;
            applyForjob.mobileNumber      = applyForJobModel.mobileNumber;
            applyForjob.Email             = applyForJobModel.Email;
            applyForjob.Contact           = new Contact();
            applyForjob.Contact.ContactId = applyForJobModel.Contact.ContactId;
            applyForjob.Gender            = new Gender();
            applyForjob.Gender.GenderId   = applyForJobModel.Gender.GenderId;
            applyForjob.CurrentRole       = applyForJobModel.CurrentRole;
            applyForjob.collegename       = applyForJobModel.collegename;
            applyForjob.PreOrgName        = applyForJobModel.PreOrgName;
            business.Applyjob(applyForjob);
        }
        public List <ApplyForJobModel> DisplayApplications()
        {
            List <ApplyForJobModel> applyForJobModels = new List <ApplyForJobModel>();
            List <ApplyForjob>      applyForjobs      = business.DisplayApplications();

            foreach (var application in applyForjobs)
            {
                ApplyForJobModel applyForJobModel = new ApplyForJobModel();
                applyForJobModel.CompanyName         = application.CompanyName;
                applyForJobModel.CandidatName        = application.CandidatName;
                applyForJobModel.mobileNumber        = application.mobileNumber;
                applyForJobModel.Email               = application.Email;
                applyForJobModel.Contact             = new ContactModel();
                applyForJobModel.Contact.ContactedBy = application.Contact.ContactedBy;
                applyForJobModel.Gender              = new GenderModel();
                applyForJobModel.Gender.GenderName   = application.Gender.GenderName;
                applyForJobModel.CurrentRole         = application.CurrentRole;
                applyForJobModel.collegename         = application.collegename;
                applyForJobModel.PreOrgName          = application.PreOrgName;
                applyForJobModels.Add(applyForJobModel);
            }
            return(applyForJobModels);
        }