Ejemplo n.º 1
0
        public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
        {
            var repo  = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            var logic = new CompanyJobDescriptionLogic(repo);

            return(logic.GetAll());
        }
Ejemplo n.º 2
0
        public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
        {
            ApplicantProfileRepository <CompanyJobDescriptionPoco> repo = new ApplicantProfileRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic log = new CompanyJobDescriptionLogic(repo);

            return(log.GetAll());
        }
Ejemplo n.º 3
0
        public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
        {
            EFGenericRepository <CompanyJobDescriptionPoco> companyjobdescriptionrepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic _companyjobdescriptionlogic = new CompanyJobDescriptionLogic(companyjobdescriptionrepo);

            return(_companyjobdescriptionlogic.GetAll());
        }
Ejemplo n.º 4
0
        // GET: CompanyJob
        public ActionResult Index()
        {
            List <JobInformation> jobInfoList = new List <JobInformation>();
            //Company Job via WebAPI
            var request     = new RestRequest("api/careercloud/company/v1/job");
            var response    = client.Execute <CompanyJobPoco>(request);
            var companyJobs = JsonConvert.DeserializeObject <IEnumerable <CompanyJobPoco> >(response.Content);

            foreach (var companyJob in companyJobs)
            {
                JobInformation jobInformation = new JobInformation();

                CompanyJobDescriptionPoco companyJobDescriptionPoco;

                jobInformation.profileCreated = companyJob.ProfileCreated;
                jobInformation.companyJobPoco = companyJob;


                CompanyJobDescriptionRepository companyJobDescriptionRepository = new CompanyJobDescriptionRepository();
                CompanyJobDescriptionLogic      companyJobDescriptionLogic      = new CompanyJobDescriptionLogic(companyJobDescriptionRepository);
                companyJobDescriptionPoco = companyJobDescriptionLogic.GetAll().Where(s => s.Job == companyJob.Id).FirstOrDefault();

                if (companyJobDescriptionPoco == null)
                {
                    continue;
                }

                jobInformation.jobName        = companyJobDescriptionPoco.JobName;
                jobInformation.jobDescription = companyJobDescriptionPoco.JobDescriptions;


                CompanyProfilePoco       companyProfilePoco;
                CompanyProfileRepository companyProfileRepository = new CompanyProfileRepository();
                CompanyProfileLogic      companyProfileLogic      = new CompanyProfileLogic(companyProfileRepository);
                companyProfilePoco = companyProfileLogic.GetAll().Where(s => s.Id == companyJob.Company).FirstOrDefault();

                if (companyProfilePoco == null)
                {
                    continue;
                }



                CompanyDescriptionPoco       companyDescriptionPoco;
                CompanyDescriptionRepository companyDescriptionRepository = new CompanyDescriptionRepository();
                CompanyDescriptionLogic      companyDescriptionLogic      = new CompanyDescriptionLogic(companyDescriptionRepository);
                companyDescriptionPoco = companyDescriptionLogic.GetAll().Where(s => s.Company == companyProfilePoco.Id).FirstOrDefault();

                if (companyDescriptionPoco == null)
                {
                    continue;
                }

                jobInformation.companyName = companyDescriptionPoco.CompanyName;
                jobInfoList.Add(jobInformation);
            }

            return(View(jobInfoList));
        }
Ejemplo n.º 5
0
        public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
        {
            List <CompanyJobDescriptionPoco> companyJobDescriptionPoco = new List <CompanyJobDescriptionPoco>();
            var logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

            companyJobDescriptionPoco = logic.GetAll();
            return(companyJobDescriptionPoco);
        }
Ejemplo n.º 6
0
        public IHttpActionResult GetAllCompanyJobDescription()
        {
            var companies = _logic.GetAll();

            if (companies == null)
            {
                NotFound();
            }
            return(Ok(companies));
        }
Ejemplo n.º 7
0
        public IHttpActionResult GetAllCompanyJobsDescription()
        {
            var companyJobDescriptionList = _logic.GetAll();

            if (companyJobDescriptionList == null)
            {
                return(NotFound());
            }
            return(Ok(companyJobDescriptionList));
        }
        public IHttpActionResult GetAllCompanyJobsDescription()
        {
            List <CompanyJobDescriptionPoco> result = _logic.GetAll();

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
        public ActionResult GetAllCompanyJobsDescription()
        {
            List <CompanyJobDescriptionPoco> pocos = _logic.GetAll();

            if (pocos == null)
            {
                return(NotFound());
            }
            return(Ok(pocos));
        }
Ejemplo n.º 10
0
        public IHttpActionResult GetAllCompanyJobDescription()
        {
            var applicants = _logic.GetAll();

            if (applicants == null)
            {
                return(NotFound());
            }
            return(Ok(applicants));
        }
Ejemplo n.º 11
0
        public IHttpActionResult GetCompanyJobDescription()
        {
            List <CompanyJobDescriptionPoco> poco = _logic.GetAll();

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

            return(Ok(poco));
        }
Ejemplo n.º 12
0
 public IHttpActionResult GetAllCompanyJobDescription()
 {
     try
     {
         IEnumerable <CompanyJobDescriptionPoco> 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);
     }
 }
Ejemplo n.º 13
0
        public ActionResult GetCompanyJobsDescription()
        {
            List <CompanyJobDescriptionPoco> companyJobDescriptions = _logic.GetAll();

            if (companyJobDescriptions == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companyJobDescriptions));
            }
        }
Ejemplo n.º 14
0
        public ActionResult GetAllCompanyJobDescription()
        {
            var companies = _logic.GetAll();

            if (companies == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companies));
            }
        }
Ejemplo n.º 15
0
        public ActionResult GetAllCompanyJobsDescription()
        {
            var Company = _logic.GetAll();

            if (Company == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(Company));
            }
        }
Ejemplo n.º 16
0
        public ActionResult GetAllCompanyJobsDescription()
        {
            var companylist = _logicref.GetAll();

            if (companylist != null)
            {
                return(Ok(companylist));
            }
            else
            {
                return(NotFound());
            }
        }
 public IHttpActionResult  GetCompanyJobDescription()
 {
     try
     {
         List <CompanyJobDescriptionPoco> poco = _logic.GetAll();
         if (poco == null)
         {
             return(NotFound());
         }
         return(Ok(poco));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <AllCompanyJobDescriptionPayload> GetAllCompanyJobDescription(Empty request, ServerCallContext context)
        {
            var Pocos = _logic.GetAll();

            _ = Pocos ?? throw new ArgumentNullException("  No Company Job Description record was found");

            var AllCompanyJobDescriptionPayload = new AllCompanyJobDescriptionPayload();

            Pocos.ForEach(poco => AllCompanyJobDescriptionPayload.CompanyJobDescriptions.Add(new CompanyJobDescriptionPayload
            {
                Id             = poco.Id.ToString(),
                Job            = poco.Job.ToString(),
                JobName        = poco.JobName,
                JobDescription = poco.JobDescriptions
            }));

            return(new Task <AllCompanyJobDescriptionPayload>(() => AllCompanyJobDescriptionPayload));
        }
Ejemplo n.º 19
0
        public override Task <CompJobDescArray> GetAllCompanyDescription(Empty request, ServerCallContext context)
        {
            List <CompanyJobDescriptionPoco> pocos           = _logic.GetAll();
            List <CompJobDescProto>          compJobDescList = new List <CompJobDescProto>();

            foreach (var poco in pocos)
            {
                CompJobDescProto compJobDesc = new CompJobDescProto();
                compJobDesc.Id              = poco.Id.ToString();
                compJobDesc.Job             = poco.Job.ToString();
                compJobDesc.JobName         = poco.JobName;
                compJobDesc.JobDescriptions = poco.JobDescriptions;
                compJobDescList.Add(compJobDesc);
            }
            CompJobDescArray compJobDescArray = new CompJobDescArray();

            compJobDescArray.CompJobDesc.AddRange(compJobDescList);
            return(new Task <CompJobDescArray>(() => compJobDescArray));
        }
Ejemplo n.º 20
0
        // GET: CompanyJobs
        public ActionResult Index()
        {
            Guid _userProfileId = (Guid)TempData["Company"];

            TempData.Keep();
            List <CompanyJobPost> postedJobs = new List <CompanyJobPost>();
            List <CompanyJobPoco> jobPocos   = new List <CompanyJobPoco>();
            Dictionary <Guid, CompanyJobDescriptionPoco> descPocos  = new Dictionary <Guid, CompanyJobDescriptionPoco>();
            Dictionary <Guid, CompanyJobSkillPoco>       skillPocos = new Dictionary <Guid, CompanyJobSkillPoco>();
            Dictionary <Guid, CompanyJobEducationPoco>   eduPocos   = new Dictionary <Guid, CompanyJobEducationPoco>();

            Guid UserID = (Guid)TempData["Company"];

            TempData.Keep();
            jobPocos = _jobLogic.GetAll().Where(T => T.Company == UserID).ToList();
            foreach (CompanyJobPoco x in jobPocos)
            {
                descPocos.Add(x.Id, _descLogic.GetAll().Where(T => T.Job == x.Id).FirstOrDefault());
                skillPocos.Add(x.Id, _skillLogic.GetAll().Where(T => T.Job == x.Id).FirstOrDefault());
                eduPocos.Add(x.Id, _eduLogic.GetAll().Where(T => T.Job == x.Id).FirstOrDefault());
            }
            foreach (CompanyJobPoco x in jobPocos)
            {
                CompanyJobPost y = new CompanyJobPost
                {
                    JobID           = x.Id,
                    JobName         = descPocos[x.Id].JobName,
                    JobDescription  = descPocos[x.Id].JobDescriptions,
                    Major           = eduPocos[x.Id].Major,
                    EduImportance   = eduPocos[x.Id].Importance,
                    Skill           = skillPocos[x.Id].Skill,
                    SkillLevel      = skillPocos[x.Id].SkillLevel,
                    SkillImportance = skillPocos[x.Id].Importance,
                    Created         = x.ProfileCreated,
                    IfInactive      = x.IsInactive,
                    IfHidden        = x.IsCompanyHidden
                };
                postedJobs.Add(y);
            }

            return(View(postedJobs));
        }
Ejemplo n.º 21
0
        public ActionResult JobsCreatedByCompany()
        {
            Guid companyId = (Guid)Session["Company"];

            CompanyJobRepository repository = new CompanyJobRepository();
            CompanyJobLogic      logic      = new CompanyJobLogic(repository);
            var companyJobs = logic.GetAll().Where(s => s.Company == companyId);

            List <JobInformation> jobInfoList = new List <JobInformation>();

            foreach (var companyJob in companyJobs)
            {
                JobInformation jobInformation = new JobInformation();

                CompanyJobDescriptionPoco companyJobDescriptionPoco;

                jobInformation.profileCreated = companyJob.ProfileCreated;
                jobInformation.companyJobPoco = companyJob;


                CompanyJobDescriptionRepository companyJobDescriptionRepository = new CompanyJobDescriptionRepository();
                CompanyJobDescriptionLogic      companyJobDescriptionLogic      = new CompanyJobDescriptionLogic(companyJobDescriptionRepository);
                companyJobDescriptionPoco = companyJobDescriptionLogic.GetAll().Where(s => s.Job == companyJob.Id).FirstOrDefault();

                if (companyJobDescriptionPoco == null)
                {
                    continue;
                }

                jobInformation.jobName        = companyJobDescriptionPoco.JobName;
                jobInformation.jobDescription = companyJobDescriptionPoco.JobDescriptions;


                jobInfoList.Add(jobInformation);
            }

            return(View(jobInfoList));
        }
Ejemplo n.º 22
0
 public ActionResult GetAllCompanyJobDescription()
 {
     return(Ok(_logic.GetAll()));
 }
Ejemplo n.º 23
0
 public IList <CompanyJobDescriptionPoco> GetAllCompanyJobDescriptionPoco()
 {
     return(_logicAJL.GetAll());
 }
Ejemplo n.º 24
0
 public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
 {
     return(_cjdLogic.GetAll());
 }
Ejemplo n.º 25
0
        public List <CompanyJobDescriptionPoco> GetAllCompanyJobDescription()
        {
            var reference = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

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

        // GET: CompanyJobDescription
        public ActionResult Index()
        {
            var companyJobDescriptions = companyJobDescriptionLogic.GetAll();  //db.CompanyJobDescriptions.Include(c => c.CompanyJob);

            return(View(companyJobDescriptions.ToList()));
        }
Ejemplo n.º 27
0
        public IHttpActionResult GetAllCompanyJobsDescription()
        {
            List <CompanyJobDescriptionPoco> compJobDesc = _logic.GetAll();

            return(Ok(compJobDesc));
        }
Ejemplo n.º 28
0
 public IActionResult Index()
 {
     return(View(_logic.GetAll()));
 }