public ActionResult Index() { Guid _userProfileId = (Guid)TempData["Applicant"]; TempData.Keep(); List <ApplicantEducationPoco> pocos = new List <ApplicantEducationPoco>(); object _educationID = null; try { _educationID = (from x in _logic.GetAll() where x.Applicant == _userProfileId select x.Id).FirstOrDefault(); pocos = _logic.GetAll().Where <ApplicantEducationPoco> (T => T.Applicant == _userProfileId).ToList(); } catch { } finally { } if (pocos == null) { return(RedirectToAction("Create", "ApplicantEducation")); } else { return(View(pocos)); } }
//private CareerCloudContext db = new CareerCloudContext(); // GET: ApplicantEducation public ActionResult Index() { //var applicantEducations = db.ApplicantEducations.Include(a => a.ApplicantProfile); //return View(applicantEducations.ToList()); var applicantEducations = applicantEducationLogic.GetAll(); return(View(applicantEducations)); }
// GET: ApplicantEducations public ActionResult Index(Guid?Id) { if (Id != null) { var apEdu = Logic.GetAll().Where(a => a.Applicant == Id); //var applicantEducations = db.ApplicantEducations.Where(a => a.Applicant == Id);//.Include(a => a.ApplicantProfile); //return View(applicantEducations.ToList()); return(View(apEdu.ToList())); } else { var applicantEducations = Logic.GetAll(); //db.ApplicantEducations.Include(a => a.ApplicantProfile); return(View(applicantEducations.ToList())); } }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { EFGenericRepository <ApplicantEducationPoco> ApplicantEducationRepo = new EFGenericRepository <ApplicantEducationPoco>(false); var Logic = new ApplicantEducationLogic(ApplicantEducationRepo); return(Logic.GetAll()); }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { ApplicantProfileRepository <ApplicantEducationPoco> repo = new ApplicantProfileRepository <ApplicantEducationPoco>(false); ApplicantEducationLogic log = new ApplicantEducationLogic(repo); return(log.GetAll()); }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { var logic = new ApplicantEducationLogic (new EFGenericRepository <ApplicantEducationPoco>(false)); return(logic.GetAll()); }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { EFGenericRepository <ApplicantEducationPoco> applicanteducationrepo = new EFGenericRepository <ApplicantEducationPoco>(false); ApplicantEducationLogic _applicanteducationlogic = new ApplicantEducationLogic(applicanteducationrepo); return(_applicanteducationlogic.GetAll()); }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { List <ApplicantEducationPoco> applicantEducationPocos = new List <ApplicantEducationPoco>(); var logic = new ApplicantEducationLogic(new EFGenericRepository <ApplicantEducationPoco>(false)); applicantEducationPocos = logic.GetAll(); return(applicantEducationPocos); }
public IHttpActionResult GetAllApplicantEducation() { var appEducationList = _logic.GetAll(); if (appEducationList == null) { return(NotFound()); } return(Ok(appEducationList)); }
public IHttpActionResult GetAllApplicantEducation() { List <ApplicantEducationPoco> applicantEducations = _logic.GetAll(); if (applicantEducations == null) { return(NotFound()); } return(Ok(applicantEducations)); }
public IHttpActionResult GetallApplicantEducation() { List <ApplicantEducationPoco> result = _logic.GetAll(); if (result == null) { return(NotFound()); } return(Ok(result)); }
public ActionResult GetAllApplicantEducation() { List <ApplicantEducationPoco> pocos = _logic.GetAll(); if (pocos == null) { return(NotFound()); } return(Ok(pocos)); }
public IHttpActionResult GetAllApplicantEducation() { var applicants = _logic.GetAll(); if (applicants == null) { NotFound(); } return(Ok(applicants)); }
public override Task <ApplicantEducations> GetApplicantEducations(Empty request, ServerCallContext context) { ApplicantEducations CollectionofApplicantEducation = new ApplicantEducations(); List <ApplicantEducationPoco> pocos = _logic.GetAll(); foreach (ApplicantEducationPoco poco in pocos) { CollectionofApplicantEducation.AppEdus.Add(FromPOCO(poco)); } return(Task.FromResult <ApplicantEducations>(CollectionofApplicantEducation)); }
public IHttpActionResult GetApplicantEducation() { var getAll = _logic.GetAll(); if (getAll == null) { return(NotFound()); } return(Ok(getAll)); }
public ActionResult GetAllApplicantEducation() { var AllApplicants = _logic.GetAll(); if (AllApplicants == null) { return(NotFound()); } return(Ok(AllApplicants)); }
public override Task <ApplicantEducationList> GetAllApplicantEducation(Empty request, ServerCallContext context) { ApplicantEducationList list = new ApplicantEducationList(); List <ApplicantEducationPoco> pocos = logic.GetAll(); foreach (var poco in pocos) { list.AppEdus.Add(FromPoco(poco)); } return(Task.FromResult(list)); }
public override Task <ApplicantEducations> GetApplicantEducations(Empty request, ServerCallContext context) { ApplicantEducations edus = new ApplicantEducations(); List <ApplicantEducationPoco> pocos = _logic.GetAll(); foreach (ApplicantEducationPoco poco in pocos) { edus.ApplicationEducarionReplies.Add(FromPoco(poco)); } return(Task.FromResult <ApplicantEducations>(edus)); }
public IHttpActionResult GetAllApplicantEducation() { try { IEnumerable <ApplicantEducationPoco> itemList = _logicObj.GetAll(); if (itemList != null) { return(this.Ok(itemList)); } else { return(this.NotFound()); } } catch (Exception e) { HttpResponseMessage response = this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e); throw new HttpResponseException(response); } }
public override Task <ApplicantEducations> GetApplicantEducations(Empty request, ServerCallContext context) { List <ApplicantEducationPoco> pocos = _logic.GetAll(); ApplicantEducations edus = new ApplicantEducations(); foreach (var poco in pocos) { ApplicantEducationReply reply = FromPoco(poco); edus.AppEdus.Add(reply); } return(Task.FromResult(edus)); }
public ActionResult GetAllApplicantEducation() { var applicants = _logicref.GetAll(); if (applicants != null) { return(Ok(applicants)); } else { return(NotFound()); } }
public IHttpActionResult GetAllApplicantEducation() { try { List <ApplicantEducationPoco> pocos = _logic.GetAll(); if (pocos == null) { return(NotFound()); } return(Ok(pocos)); } catch (Exception e) { return(InternalServerError(e)); } }
// GET: ApplicantEducation public IActionResult Index(Guid?Applicant) { var Educations = _logic.GetAll(a => a.ApplicantProfile, s => s.ApplicantProfile.SecurityLogin); if (Applicant != null) { Educations = Educations.Where(a => a.Applicant == Applicant).ToList(); } else { return(NotFound()); } ViewData["Id"] = Applicant; return(View(Educations.ToList())); }
// GET: ApplicantEducation public ActionResult Index() { return(View(logic.GetAll())); }
public ActionResult GetAllApplicantEducation() { _logic.GetAll(); return(Ok()); }
public IActionResult GetAllApplicantEducation() { return(Ok(_logic.GetAll())); }
public IHttpActionResult GetAllCompanyProfile() { List <ApplicantEducationPoco> appEdu = _logic.GetAll(); return(Ok(appEdu)); }
//[Route("odata")] public IQueryable <ApplicantEducationPoco> Get() { return(_logic.GetAll().AsQueryable()); }
public List <ApplicantEducationPoco> GetAllApplicantEducation() { return(_logic.GetAll()); }