Example #1
0
 public IActionResult JobPosting()
 {
     try
     {
         string msg = Convert.ToString(TempData["msg"]);
         if (msg != "" || msg != null)
         {
             ViewData["SuccessMessage"] = msg;
         }
         ViewBag.JobTitle        = jobpastHandler.GetJobTitleDetails();
         ViewBag.JobIndustryArea = jobpastHandler.GetJobIndustryAreaDetails();
         //ViewBag.Gender = jobpastHandler.GetGenderListDetail();
         ViewBag.EmploymentStatus = jobpastHandler.GetJobJobEmploymentStatusDetails();
         ViewBag.EmploymentType   = jobpastHandler.GetJobJobEmploTypeDetails();
         ViewBag.Country          = jobpastHandler.GetCountryDetails();
         ViewBag.JobTypes         = jobpastHandler.GetJobTypes();
         return(View());
     }
     catch (DataNotFound ex)
     {
         Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, 0, typeof(JobManagementController), ex);
         ModelState.AddModelError("ErrorMessage", string.Format("{0}", ex.Message));
     }
     return(View());
 }
Example #2
0
 public IActionResult Profile()
 {
     try
     {
         ViewBag.JobIndustryArea  = jobpastHandler.GetJobIndustryAreaDetails();
         ViewBag.EmploymentStatus = jobpastHandler.GetJobJobEmploymentStatusDetails();
         ViewBag.Country          = jobpastHandler.GetCountryDetails();
         ViewBag.Coursecategory   = jobpastHandler.GetCourseCategory();
         ViewBag.JobTypes         = userProfileHandler.GetJobTypes();
         ViewBag.AllJobTitle      = jobpastHandler.GetJobTitleDetails();
     }
     catch (DataNotFound ex)
     {
         Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, 0, typeof(JobSeekerManagementController), ex);
         ModelState.AddModelError("ErrorMessage", string.Format("{0}", ex.Message));
     }
     catch (InvalidUserCredentialsException ex)
     {
         Logger.Logger.WriteLog(Logger.Logtype.Error, ex.Message, 0, typeof(JobSeekerManagementController), ex);
         ModelState.AddModelError("ErrorMessage", string.Format("{0}", ex.Message));
     }
     return(View());
 }
        public IActionResult AdvanceResumeSearch()
        {
            var user = HttpContext.Session.Get <UserViewModel>(Constants.SessionKeyUserInfo);

            user                       = user ?? new UserViewModel();
            ViewBag.JobTitle           = jobpastHandler.GetJobTitleDetails();
            ViewBag.JobIndustryArea    = jobpastHandler.GetJobIndustryAreaDetails();
            ViewBag.EmploymentStatus   = jobpastHandler.GetJobJobEmploymentStatusDetails();
            ViewBag.EmploymentType     = jobpastHandler.GetJobJobEmploTypeDetails();
            ViewBag.JobTypes           = jobpastHandler.GetJobTypes();
            ViewBag.CityData           = searchresumehandler.GetCityList();
            ViewBag.GenderData         = searchresumehandler.GetGenders();
            ViewBag.EmployersData      = searchresumehandler.GetEmployers(true);
            ViewBag.AdvanceSearchStats = searchresumehandler.AdvanceSearchStates(user.UserId);
            return(View());
        }