Exemplo n.º 1
0
        public List <CompanyDescriptionPoco> GetAllCompanyDescription()
        {
            ApplicantProfileRepository <CompanyDescriptionPoco> repo = new ApplicantProfileRepository <CompanyDescriptionPoco>(false);
            CompanyDescriptionLogic log = new CompanyDescriptionLogic(repo);

            return(log.GetAll());
        }
Exemplo n.º 2
0
        public List <CompanyDescriptionPoco> GetAllCompanyDescription()
        {
            var repo  = new EFGenericRepository <CompanyDescriptionPoco>(false);
            var logic = new CompanyDescriptionLogic(repo);

            return(logic.GetAll());
        }
Exemplo n.º 3
0
        public List <CompanyDescriptionPoco> GetAllCompanyDescription()
        {
            EFGenericRepository <CompanyDescriptionPoco> companydescriptionrepo = new EFGenericRepository <CompanyDescriptionPoco>(false);
            CompanyDescriptionLogic _companydescriptionlogic = new CompanyDescriptionLogic(companydescriptionrepo);

            return(_companydescriptionlogic.GetAll());
        }
Exemplo 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));
        }
Exemplo n.º 5
0
        public List <CompanyDescriptionPoco> GetAllCompanyDescription()
        {
            List <CompanyDescriptionPoco> companyDescriptionPoco = new List <CompanyDescriptionPoco>();
            var logic = new CompanyDescriptionLogic(new EFGenericRepository <CompanyDescriptionPoco>(false));

            companyDescriptionPoco = logic.GetAll();
            return(companyDescriptionPoco);
        }
Exemplo n.º 6
0
        public IHttpActionResult GetAllCompanyDescription()
        {
            List <CompanyDescriptionPoco> pocos = logic.GetAll();

            if (pocos == null)
            {
                return(NotFound());
            }
            return(Ok(pocos));
        }
        public IHttpActionResult GetAllCompanyDescription()
        {
            var applicants = _logic.GetAll();

            if (applicants == null)
            {
                return(NotFound());
            }
            return(Ok(applicants));
        }
Exemplo n.º 8
0
        public IHttpActionResult GetAllCompanyDescription()
        {
            var companyDescriptionList = _logic.GetAll();

            if (companyDescriptionList == null)
            {
                return(NotFound());
            }
            return(Ok(companyDescriptionList));
        }
        public IHttpActionResult GetAllCompanyDescription()
        {
            List <CompanyDescriptionPoco> result = _logic.GetAll();

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }
        public IHttpActionResult GetAllCompanyDescription()
        {
            var companies = _logic.GetAll();

            if (companies == null)
            {
                NotFound();
            }
            return(Ok(companies));
        }
        public ActionResult GetCompanyDescription()
        {
            List <CompanyDescriptionPoco> poco = _logic.GetAll();

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

            return(Ok(poco));
        }
        public override Task <CompanyDescriptions> GetCompanyDescriptions(Empty request, ServerCallContext context)
        {
            CompanyDescriptions           CollectionofCompanyDescription = new CompanyDescriptions();
            List <CompanyDescriptionPoco> pocos = _logic.GetAll();

            foreach (CompanyDescriptionPoco poco in pocos)
            {
                CollectionofCompanyDescription.AppEdus.Add(FromPOCO(poco));
            }
            return(Task.FromResult <CompanyDescriptions>(CollectionofCompanyDescription));
        }
        public override Task <CompanyDescriptions> GetCompanyDescriptions(Empty request, ServerCallContext context)
        {
            CompanyDescriptions           collectCompDesc = new CompanyDescriptions();
            List <CompanyDescriptionPoco> pocos           = _logic.GetAll();

            foreach (CompanyDescriptionPoco poco in pocos)
            {
                collectCompDesc.CompDescs.Add(FromPoco(poco));
            }
            return(Task.FromResult <CompanyDescriptions>(collectCompDesc));
        }
        public override Task <CompanyDescriptionList> GetAllCompanyDescription(Empty request, ServerCallContext context)
        {
            CompanyDescriptionList        list  = new CompanyDescriptionList();
            List <CompanyDescriptionPoco> pocos = logic.GetAll();

            foreach (var poco in pocos)
            {
                list.CompDescList.Add(FromPoco(poco));
            }
            return(Task.FromResult(list));
        }
        public ActionResult GetAllCompanyDescription()
        {
            var poco = _logic.GetAll();

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

            return(Ok(poco));
        }
        public override Task <CompanyDescriptions> GetCompanyDescriptions(Empty request, ServerCallContext context)
        {
            CompanyDescriptions           edus  = new CompanyDescriptions();
            List <CompanyDescriptionPoco> pocos = _logic.GetAll();

            foreach (CompanyDescriptionPoco poco in pocos)
            {
                edus.CompanyDescriptionReplies.Add(FromPoco(poco));
            }

            return(Task.FromResult <CompanyDescriptions>(edus));
        }
 public IHttpActionResult GetAllCompanyDescription()
 {
     try
     {
         IEnumerable <CompanyDescriptionPoco> 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.º 18
0
        public override Task <CompanyDescriptions> GetCompanyDescriptions(Empty request, ServerCallContext context)
        {
            List <CompanyDescriptionPoco> pocos  = _logic.GetAll();
            CompanyDescriptions           comDes = new CompanyDescriptions();

            foreach (var poco in pocos)
            {
                CompanyDescriptionReply reply = FromPoco(poco);
                comDes.ComDes.Add(reply);
            }
            return(Task.FromResult(comDes));
        }
        public ActionResult GetAllCompanyDescription()
        {
            var CompanyDescriptions = _logic.GetAll();

            if (CompanyDescriptions == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(CompanyDescriptions));
            }
        }
Exemplo n.º 20
0
        // GET: CompanyProfile/Edit/5
        public ActionResult Edit(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            CompanyProfilePoco companyProfilePoco = companyProfileLogic.Get(id.Value);

            if (companyProfilePoco == null)
            {
                return(HttpNotFound());
            }

            var companyDescriptionPoco =
                companyDescriptionLogic.GetAll().Where(cd => cd.LanguageId.Trim() == "EN" &&
                                                       cd.Company == companyProfilePoco.Id).FirstOrDefault();

            ViewBag.CompanyName         = companyDescriptionPoco.CompanyName;
            ViewBag.ComapanyDescription = companyDescriptionPoco.CompanyDescription;
            return(View(companyProfilePoco));
        }
        public ActionResult GetCompanyDescription()
        {
            List <CompanyDescriptionPoco> companyDescriptions = _logic.GetAll();

            if (companyDescriptions == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(companyDescriptions));
            }
        }
        public ActionResult GetAllCompanyDescription()
        {
            var companylist = _logicref.GetAll();

            if (companylist != null)
            {
                return(Ok(companylist));
            }
            else
            {
                return(NotFound());
            }
        }
Exemplo n.º 23
0
 public IHttpActionResult GetAllCompanyDescription()
 {
     try
     {
         List <CompanyDescriptionPoco> pocos = _logic.GetAll();
         if (pocos == null)
         {
             return(NotFound());
         }
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <AllCompanyDescriptionPayload> GetAllCompanyDescription(Empty request, ServerCallContext context)
        {
            var Pocos = _logic.GetAll();

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

            var AllCompanyDescriptionPayload = new AllCompanyDescriptionPayload();

            Pocos.ForEach(poco => AllCompanyDescriptionPayload.CompanyDescriptions.Add(new CompanyDescriptionPayload
            {
                Id                 = poco.Id.ToString(),
                Company            = poco.Company.ToString(),
                CompanyName        = poco.CompanyName,
                CompanyDescription = poco.CompanyDescription,
                LanguageId         = poco.LanguageId
            }));

            return(new Task <AllCompanyDescriptionPayload>(() => AllCompanyDescriptionPayload));
        }
Exemplo n.º 25
0
        public override Task <CompDescArray> GetAllCompanyDescription(Empty request, ServerCallContext context)
        {
            List <CompanyDescriptionPoco> pocos        = _logic.GetAll();
            List <CompDescProto>          compDescList = new List <CompDescProto>();

            foreach (var poco in pocos)
            {
                CompDescProto compDesc = new CompDescProto();
                compDesc.Id                 = poco.Id.ToString();
                compDesc.Company            = poco.Company.ToString();
                compDesc.LanguageId         = poco.LanguageId;
                compDesc.CompanyName        = poco.CompanyName;
                compDesc.CompanyDescription = poco.CompanyDescription;
                compDescList.Add(compDesc);
            }
            CompDescArray compDescArray = new CompDescArray();

            compDescArray.CompDesc.AddRange(compDescList);
            return(new Task <CompDescArray>(() => compDescArray));
        }
        public IHttpActionResult GetCompanyDescription()
        {
            List <CompanyDescriptionPoco> companyDescriptionData = _logic.GetAll();

            return(Ok(companyDescriptionData));
        }
 public ActionResult GetAllCompanyDescription()
 {
     return(Ok(_logic.GetAll()));
 }
Exemplo n.º 28
0
        public List <CompanyDescriptionPoco> GetAllCompanyDescription()
        {
            var reference = new CompanyDescriptionLogic(new EFGenericRepository <CompanyDescriptionPoco>(false));

            return(reference.GetAll());
        }
Exemplo n.º 29
0
 private void PopulateCompanyList(Guid?Company = null)
 {
     var Companies = _logic.GetAll().Select(k => new { Id = k.Company, Name = k.CompanyName is "" ? "<empty>" : k.CompanyName });
Exemplo n.º 30
0
        public IHttpActionResult GetAllCompanyDescription()
        {
            List <CompanyDescriptionPoco> appJobApp = _logic.GetAll();

            return(Ok(appJobApp));
        }