public ActionResult PersonnelInfoSendEmail(int CandidateId, int ToUserId, string Subject, string EmailMessage)
        {
            PersonnelInfoModel model = new PersonnelInfoModel();
            model.CandidateID = CandidateId;
            model.ToUserId = ToUserId;
            model.Subject = Subject;
            model.EmailMessage = EmailMessage;

            string error = String.Empty;
            bool result = EmploymentBl.EmploymentProccedRegistrationSendEmail(model, out error);

            if (result)
                model = EmploymentBl.GetPersonnelInfoModel(model);

            return Json(new { ok = result, msg = error, EmailMessageStr = model.EmailMessage });
        }
 public ActionResult PersonnelInfo(int ID, bool IsCandidateInfoAvailable, bool IsBackgroundCheckAvailable, bool IsManagersAvailable, bool IsPersonalManagersAvailable, int TabIndex)
 {
     PersonnelInfoModel model = new PersonnelInfoModel();
     model.CandidateID = ID;
     model.IsCandidateInfoAvailable = IsCandidateInfoAvailable;
     model.IsBackgroundCheckAvailable = IsBackgroundCheckAvailable;
     model.IsManagersAvailable = IsManagersAvailable;
     model.IsPersonalManagersAvailable = IsPersonalManagersAvailable;
     model.TabIndex = TabIndex;
     model = EmploymentBl.GetPersonnelInfoModel(model);
     return View(model);
 }