public ActionResult addNewRepresentative(AddNewRepresentative representative) { int value = new DataAccess.StaffDAL().addNewRepresent(representative); if (value == -1) { //successfully added ViewBag.message = "UnSuccessfull in adding the representative ....Please Try Again"; } else { ViewBag.message = "Successfull in adding the representative .... RepresentativeId = " + value; } return View("successNewRepresentative"); }
//------------------------------------------------------------------------------------------------------ //---------------------------Posting Job Offers---------------------------------------------------- //------------------------------------------------------------------------------------------------------ public ActionResult adminPostJobOffer() { string type = (string)Session["TypeOfUser"]; if (type == null) { return RedirectToAction("Index", "Home"); } else if (type.CompareTo("Admin") != 0) { return RedirectToAction("Index", "Home"); } List<string> CompanyNames = new List<string>(); CompanyNames = new DataAccess.StaffDAL().postJobCompany(); if (CompanyNames.Count > 0) { ViewBag.list = CompanyNames; return View(); } else { return View("Index"); } }
public ActionResult StVwWSPreReq(string wid) { WSPrerequisite prereq = new DataAccess.StaffDAL().WSPrerequisiteOf(wid); return Json(prereq); }
public ActionResult StVwWSApp2(string domain, string companyName) { List<string> WIDs = new DataAccess.StaffDAL().PendingWSByDomain(domain, companyName); return Json(WIDs); }
public ActionResult StVwWSApp() { string type = (string)Session["TypeOfUser"]; if (type == null) { return RedirectToAction("Index", "Home"); } else if (type.CompareTo("Admin") != 0) { return RedirectToAction("Index", "Home"); } List<string> companynames = new DataAccess.StaffDAL().CompanyNames(); ViewBag.WSCompanyNameL = companynames; return View(); }
public ActionResult RejectWorkshopOffer(int workshopId) { int returnValue = new DataAccess.StaffDAL().RejectWorkshop(workshopId); return Json(returnValue); }
public ActionResult PostWorkshopDD(string cname) { List<string> Domains = new DataAccess.StaffDAL().WSDomainsByCompany(cname); return Json(Domains); }
public ActionResult JobStreamCodes(string companyName) { List<string> StreamCodes = new DataAccess.StaffDAL().StreamCodeOf(companyName); return Json(StreamCodes); }
public ActionResult SelTrainCan(string trainid) { SelTCanViewModel trainingapplns = new DataAccess.StaffDAL().SelectedTrainingApplicants(trainid); return Json(trainingapplns); }
public List<TrainingL> GetTrainings(string repid) { List<TrainingL> trainings = new DataAccess.StaffDAL().TrainingByCompanyApplied(repid); return trainings; }
public ActionResult StVwJobPreReq(string jid) { JobPrerequisite prereq = new DataAccess.StaffDAL().JobPrerequisiteOf(jid); return Json(prereq); }
public ActionResult StVwJobApp1(string cname) { List<string> StreamCodes = new DataAccess.StaffDAL().StreamCodeOf(cname); return Json(StreamCodes); }
public ActionResult StSelJobCanMD(string jobid) { SelJCanViewModel jobapplns = new DataAccess.StaffDAL().SelectedAppsByJobId(jobid); return Json(jobapplns); }
public ActionResult StSelJobCanDD(string cname) { List<string> JobIds = new DataAccess.StaffDAL().JobIdsByCompany(cname); return Json(JobIds); }
public ActionResult TrainingApplicantAllM(string trainingId) { Training traindetails = new DataAccess.StaffDAL().TrainingDetailsOfId(trainingId); return Json(traindetails); }
public ActionResult JobCandidateMaster(string jobId) { SelJCanViewModel jobapplns = new DataAccess.StaffDAL().SelectedAppsByJobId(jobId); return Json(jobapplns); }
public ActionResult JobIdList(string streamCode) { List<string> JIDs = new DataAccess.StaffDAL().JobIdByStream(streamCode); return Json(JIDs); }
public List<Company> GetCompanyList() { List<Company> companynames = new DataAccess.StaffDAL().CompanyNamesWithRepID(); return companynames; }
public ActionResult ViewJobPrerequisite(string jobId) { JobPrerequisite prereq = new DataAccess.StaffDAL().JobPrerequisiteOf(jobId); return Json(prereq); }
public ActionResult WorkshopPrerequisites(string wid) { WSPrerequisite prereq = new DataAccess.StaffDAL().WSPrerequisiteOf(wid); return Json(prereq); }
public ActionResult PostWorkshopM(string domain, string companyName) { WorkshopViewModel WSOffers = new DataAccess.StaffDAL().ListWorkshopsBy(domain, companyName); return Json(WSOffers); }
public ActionResult StVwTrainApplicants(string tid) { TrainApplicantsViewModel TrainApps = new DataAccess.StaffDAL().ApplicantDetailsForTraining(tid); return Json(TrainApps); }
public ActionResult SelectedWorkshopIds(string companyName) { List<int> workshopIds = new DataAccess.StaffDAL().WorkshopIdList(companyName); return Json(workshopIds); }
public ActionResult StVwTrainCanDD(string cname) { List<string> TrainIds = new DataAccess.StaffDAL().TrainingIdsByCompany(cname); return Json(TrainIds); }
public ActionResult StVwWSApp1(string cname) { List<string> Domains = new DataAccess.StaffDAL().WSDomainsByCompany(cname); return Json(Domains); }
public ActionResult StVwTrainCanM(string tid) { Training traindetails = new DataAccess.StaffDAL().TrainingDetailsOfId(tid); return Json(traindetails); }
public ActionResult StVwWSApplicants(string wid) { WSPendAppViewModel WSPendApps = new DataAccess.StaffDAL().WSApplicantDetails(wid); return Json(WSPendApps); }
public ActionResult JobApplicantDetail(string jobId) { JobApplicantViewModel JobApps = new DataAccess.StaffDAL().ApplicantsDetailFor(jobId); return Json(JobApps); }
public ActionResult WorkshopApplicantDetails(int workshopId) { WSSelectedAppsVM WSApps = new DataAccess.StaffDAL().SelectedWSApplicantsD(workshopId); return Json(WSApps); }
public ActionResult JobCandidateAll(string companyName) { List<string> JobIds = new DataAccess.StaffDAL().JobIdsByCompany(companyName); return Json(JobIds); }