Beispiel #1
0
        public ActionResult Index()
        {
            Guid _userProfileId = (Guid)TempData["Applicant"];

            TempData.Keep();
            List <ApplicantWorkHistoryPoco> pocos = new List <ApplicantWorkHistoryPoco>();
            object _educationID = null;

            try
            {
                _educationID = (from x in _logic.GetAll() where x.Applicant == _userProfileId select x.Id).FirstOrDefault();
                pocos        = _logic.GetAll().Where <ApplicantWorkHistoryPoco>(T => T.Applicant == _userProfileId).ToList();
            }
            catch { }
            finally { }

            if (pocos == null)
            {
                return(RedirectToAction("Create", "ApplicantWorkHistory"));
            }
            else
            {
                return(View(pocos));
            }
        }
Beispiel #2
0
        public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
        {
            EFGenericRepository <ApplicantWorkHistoryPoco> applicantworkhistoryrepo = new EFGenericRepository <ApplicantWorkHistoryPoco>(false);
            ApplicantWorkHistoryLogic _applicantworkhistorylogic = new ApplicantWorkHistoryLogic(applicantworkhistoryrepo);

            return(_applicantworkhistorylogic.GetAll());
        }
Beispiel #3
0
        public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
        {
            EFGenericRepository <ApplicantWorkHistoryPoco> ApplicantWorkHistoryRepo = new EFGenericRepository <ApplicantWorkHistoryPoco>(false);
            var Logic = new ApplicantWorkHistoryLogic(ApplicantWorkHistoryRepo);

            return(Logic.GetAll());
        }
Beispiel #4
0
        public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
        {
            ApplicantProfileRepository <ApplicantWorkHistoryPoco> repo = new ApplicantProfileRepository <ApplicantWorkHistoryPoco>(false);
            ApplicantWorkHistoryLogic log = new ApplicantWorkHistoryLogic(repo);

            return(log.GetAll());
        }
        public override Task <AppWorkHistoryArray> GetAllApplicantWorkHistory(Empty request, ServerCallContext context)
        {
            List <AppWorkProto>             appWorkList = new List <AppWorkProto>();
            List <ApplicantWorkHistoryPoco> pocos       = _logic.GetAll();

            foreach (var poco in pocos)
            {
                AppWorkProto appWork = new AppWorkProto();
                appWork.Id             = poco.Id.ToString();
                appWork.Applicant      = poco.Applicant.ToString();
                appWork.CompanyName    = poco.CompanyName;
                appWork.CountryCode    = poco.CountryCode;
                appWork.Location       = poco.Location;
                appWork.JobTitle       = poco.JobTitle;
                appWork.JobDescription = poco.JobDescription;
                appWork.StartMonth     = Convert.ToInt32(poco.StartMonth);
                appWork.StartYear      = poco.StartYear;
                appWork.EndMonth       = Convert.ToInt32(poco.EndMonth);
                appWork.EndYear        = poco.EndYear;
                appWorkList.Add(appWork);
            }
            AppWorkHistoryArray appWorkArray = new AppWorkHistoryArray();

            appWorkArray.AppWork.AddRange(appWorkList);
            return(new Task <AppWorkHistoryArray>(() => appWorkArray));
        }
Beispiel #6
0
        public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
        {
            var logic = new ApplicantWorkHistoryLogic
                            (new EFGenericRepository <ApplicantWorkHistoryPoco>(false));

            return(logic.GetAll());
        }
Beispiel #7
0
        public List <ApplicantWorkHistoryPoco> GetAllAppliccantWorkHistory()
        {
            EFGenericRepository <ApplicantWorkHistoryPoco> repo = new EFGenericRepository <ApplicantWorkHistoryPoco>();
            ApplicantWorkHistoryLogic logic = new ApplicantWorkHistoryLogic(repo);

            return(logic.GetAll());
        }
        public override Task <AllApplicantWorkHistoryPayload> GetAllApplicantWorkHistory(Empty request, ServerCallContext context)
        {
            var Pocos = _logic.GetAll();

            _ = Pocos ?? throw new ArgumentNullException("  No Applicant Work History record was found");

            var AllApplicantWorkHistoryPayload = new AllApplicantWorkHistoryPayload();

            Pocos.ForEach(poco => AllApplicantWorkHistoryPayload.ApplicantWorkHistories.Add(new ApplicantWorkHistoryPayload
            {
                Id             = poco.Id.ToString(),
                Applicant      = poco.Applicant.ToString(),
                CompanyName    = poco.CompanyName,
                CountryCode    = poco.CountryCode,
                JobDescription = poco.JobDescription,
                JobTitle       = poco.JobTitle,
                Location       = poco.Location,
                StartMonth     = poco.StartMonth,
                EndMonth       = poco.EndMonth,
                StartYear      = poco.StartYear,
                EndYear        = poco.EndYear,
            }));

            return(new Task <AllApplicantWorkHistoryPayload>(() => AllApplicantWorkHistoryPayload));
        }
Beispiel #9
0
        public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
        {
            List <ApplicantWorkHistoryPoco> applicantWorkHistoryPoco = new List <ApplicantWorkHistoryPoco>();
            var logic = new ApplicantWorkHistoryLogic(new EFGenericRepository <ApplicantWorkHistoryPoco>(false));

            applicantWorkHistoryPoco = logic.GetAll();
            return(applicantWorkHistoryPoco);
        }
        public IHttpActionResult GetAllApplicantWorkHistory()
        {
            List <ApplicantWorkHistoryPoco> pocos = _logic.GetAll();

            if (pocos == null)
            {
                return(NotFound());
            }
            return(Ok(pocos));
        }
Beispiel #11
0
        public IHttpActionResult GetAllApplicantWorkHistory()
        {
            var applicants = _logic.GetAll();

            if (applicants == null)
            {
                NotFound();
            }
            return(Ok(applicants));
        }
        public ActionResult GetAllApplicantWorkHistory()
        {
            var poco = _logic.GetAll();

            if (poco == null)
            {
                return(NotFound());
            }

            return(Ok(poco));
        }
 public IHttpActionResult GetAllApplicantWorkHistory()
 {
     try
     {
         IEnumerable <ApplicantWorkHistoryPoco> 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);
     }
 }
Beispiel #14
0
        public ActionResult GetAllApplicantWorkHistory()
        {
            var applicants = _logicref.GetAll();

            if (applicants != null)
            {
                return(Ok(applicants));
            }
            else
            {
                return(NotFound());
            }
        }
        public ActionResult GetApplicantWorkHistory()
        {
            List <ApplicantWorkHistoryPoco> applicantWorkHistories = _logic.GetAll();

            if (applicantWorkHistories == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(applicantWorkHistories));
            }
        }
        public ActionResult GetAllApplicantEducation()
        {
            var applicants = _logic.GetAll();

            if (applicants == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(applicants));
            }
        }
Beispiel #17
0
        public ActionResult GetAllApplicantWorkHistory()
        {
            var ApplicantWorkHistory = _logic.GetAll();

            if (ApplicantWorkHistory == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(ApplicantWorkHistory));
            }
        }
Beispiel #18
0
 public IHttpActionResult GetApplicantWorkHistory()
 {
     try
     {
         List <ApplicantWorkHistoryPoco> pocos = _logic.GetAll();
         if (pocos == null)
         {
             return(NotFound());
         }
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        // GET: ApplicantWorkHistory
        public async Task <IActionResult> Index(Guid?Applicant)
        {
            var WorkHistory = _logic.GetAll(a => a.ApplicantProfile, s => s.ApplicantProfile.SecurityLogin);

            if (Applicant != null)
            {
                WorkHistory = WorkHistory.Where(a => a.Applicant == Applicant).ToList();
            }
            else
            {
                return(NotFound());
            }

            ViewData["Id"] = Applicant;
            return(View(WorkHistory.ToList()));
        }
        public IHttpActionResult GetAllApplicantWorkHistory()
        {
            List <ApplicantWorkHistoryPoco> appJobApp = _logic.GetAll();

            return(Ok(appJobApp));
        }
        //private CareerCloudContext db = new CareerCloudContext();

        // GET: ApplicantWorkHistory
        public ActionResult Index()
        {
            var applicantWorkHistorys = applicantWorkHistoryLogic.GetAll(); //db.ApplicantWorkHistorys.Include(a => a.ApplicantProfile).Include(a => a.SystemCountryCode);

            return(View(applicantWorkHistorys.ToList()));
        }
Beispiel #22
0
 public ActionResult GetApplicantWorkHistory()
 {
     return(Ok(_logic.GetAll()));
 }
Beispiel #23
0
 public IList <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistoryPoco()
 {
     return(_logicApplicantWorkHistoryLogic.GetAll());
 }
Beispiel #24
0
 public List <ApplicantWorkHistoryPoco> GetAllApplicantWorkHistory()
 {
     return(_wLogic.GetAll());
 }