public IHttpActionResult GetAllApplicantSkill()
        {
            var applicantSkillList = _logic.GetAll();

            if (applicantSkillList == null)
            {
                return(NotFound());
            }
            return(Ok(applicantSkillList));
        }
        public IHttpActionResult GetAllApplicantSkill()
        {
            List <ApplicantSkillPoco> result = _logic.GetAll();

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
Exemplo n.º 3
0
        public IHttpActionResult GetApplicantSkill()
        {
            List <ApplicantSkillPoco> poco = _logic.GetAll();

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

            return(Ok(poco));
        }
        public ActionResult GetAllApplicantSkill()
        {
            var poco = _logic.GetAll();

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

            return(Ok(poco));
        }
 public IHttpActionResult GetAllApplicantSkill()
 {
     try
     {
         IEnumerable <ApplicantSkillPoco> 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);
     }
 }
Exemplo n.º 6
0
        public ActionResult GetAllApplicantSkill()
        {
            var applicants = _logic.GetAll();

            if (applicants == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(applicants));
            }
        }
        public ActionResult GetApplicantSkill()
        {
            List <ApplicantSkillPoco> applicantSkills = _logic.GetAll();

            if (applicantSkills == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(applicantSkills));
            }
        }
        // GET: ApplicantSkill
        public IActionResult Index(Guid?Applicant)
        {
            var Skills = _logic.GetAll(a => a.ApplicantProfile, s => s.ApplicantProfile.SecurityLogin);

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

            ViewData["Id"] = Applicant;
            return(View(Skills.ToList()));
        }
Exemplo n.º 9
0
 public IHttpActionResult GetAllApplicantSkill()
 {
     try
     {
         List <ApplicantSkillPoco> poco = _logic.GetAll();
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <AllApplicantSkillPayload> GetAllApplicantSkill(Empty request, ServerCallContext context)
        {
            var Pocos = _logic.GetAll();

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

            var AllApplicantSkillPayload = new AllApplicantSkillPayload();

            Pocos.ForEach(poco => AllApplicantSkillPayload.ApplicantSkills.Add(new ApplicantSkillPayload
            {
                Id         = poco.Id.ToString(),
                Applicant  = poco.Applicant.ToString(),
                Skill      = poco.Skill,
                SkillLevel = poco.Skill,
                StartMonth = poco.StartMonth,
                EndMonth   = poco.EndMonth,
                StartYear  = poco.StartYear,
                EndYear    = poco.EndYear,
            }));

            return(new Task <AllApplicantSkillPayload>(() => AllApplicantSkillPayload));
        }
        public override Task <AppSkillArray> GetAllApplicantSkill(Empty request, ServerCallContext context)
        {
            List <AppSkillProto>      appSkillList = new List <AppSkillProto>();
            List <ApplicantSkillPoco> pocos        = _logic.GetAll();

            foreach (var poco in pocos)
            {
                AppSkillProto appSkill = new AppSkillProto();
                appSkill.Id         = poco.Id.ToString();
                appSkill.Applicant  = poco.Applicant.ToString();
                appSkill.Skill      = poco.Skill;
                appSkill.SkillLevel = poco.SkillLevel;
                appSkill.StartMonth = Convert.ToInt32(poco.StartMonth);
                appSkill.StartYear  = poco.StartYear;
                appSkill.EndMonth   = Convert.ToInt32(poco.EndMonth);
                appSkill.EndYear    = poco.EndYear;
                appSkillList.Add(appSkill);
            }
            AppSkillArray appSkillArray = new AppSkillArray();

            appSkillArray.AppSkill.AddRange(appSkillList);
            return(new Task <AppSkillArray>(() => appSkillArray));
        }
Exemplo n.º 12
0
        public List <ApplicantSkillPoco> GetAllApplicantSkill()
        {
            var logic = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false));

            return(logic.GetAll());
        }
        //private CareerCloudContext db = new CareerCloudContext();

        // GET: ApplicantSkill
        public ActionResult Index()
        {
            var applicantSkills = applicantSkillLogic.GetAll(); //db.ApplicantSkills.Include(a => a.ApplicantProfile);

            return(View(applicantSkills.ToList()));
        }
Exemplo n.º 14
0
 public List <ApplicantSkillPoco> GetAllApplicantSkill()
 {
     return(_sLogic.GetAll());
 }
        public IHttpActionResult GetAllApplicantSkill()
        {
            List <ApplicantSkillPoco> appJobApp = _logic.GetAll();

            return(Ok(appJobApp));
        }
Exemplo n.º 16
0
 public ActionResult GetAllApplicantSkill()
 {
     return(Ok(_logic.GetAll()));
 }
Exemplo n.º 17
0
        public IHttpActionResult GetApplicantSkill()
        {
            List <ApplicantSkillPoco> applicantSkillData = _logic.GetAll();

            return(Ok(applicantSkillData));
        }
Exemplo n.º 18
0
 public IList <ApplicantSkillPoco> GetAllApplicantSkillPoco()
 {
     return(_logicApplicantSkillLogic.GetAll());
 }
Exemplo n.º 19
0
        public List <ApplicantSkillPoco> GetAllApplicantSkill()
        {
            var reference = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false));

            return(reference.GetAll());
        }