Exemple #1
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            EFGenericRepository <CompanyJobSkillPoco> CompanyJobSkillRepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            var Logic = new CompanyJobSkillLogic(CompanyJobSkillRepo);

            Logic.Add(items);
        }
Exemple #2
0
        public ActionResult Create([Bind(Include = "Id,Job,Skill,SkillLevel,Importance,TimeStamp")] CompanyJobSkillPoco companyJobSkillPoco)
        {
            if (ModelState.IsValid)
            {
                companyJobSkillPoco.Id = Guid.NewGuid();
                //Session["Data"] = compJobSkillsPoco;
                //Session["Skill"] = companyJobSkillPoco.Skill;
                //Session["SkillLevel"] = companyJobSkillPoco.SkillLevel;
                //Session["Importance"] = companyJobSkillPoco.Importance;
                //compSkills.Add(companyJobSkillPoco);

                compJobSkillsPoco[0] = companyJobSkillPoco;
                Guid id1 = Guid.Parse(Session["Company"].ToString());
                //companyJobSkillPoco.Job = id;

                // companyLogic.AddSkills(companyJobSkillPoco);

                //ViewBag.skills = compJobSkills;
                companyJobSkillLogic.Add(compJobSkillsPoco);


                return(RedirectToAction("Details", "CompanyJob", new { id = id1 }));
            }

            ViewBag.Job = new SelectList(companyJobSkillLogic.GetAll(), "Job", "Job");
            return(View(companyJobSkillPoco));
        }
Exemple #3
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var logic = new CompanyJobSkillLogic
                            (new EFGenericRepository <CompanyJobSkillPoco>());

            logic.Add(items);
        }
Exemple #4
0
        public ActionResult PostCompanyJobSkill(
            [FromBody] CompanyJobSkillPoco[] pocos)
        {
            _logic.Add(pocos);

            return(Ok());
        }
Exemple #5
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            EFGenericRepository <CompanyJobSkillPoco> repo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic logic = new CompanyJobSkillLogic(repo);

            logic.Add(pocos);
        }
Exemple #6
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            ApplicantProfileRepository <CompanyJobSkillPoco> repo = new ApplicantProfileRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic log = new CompanyJobSkillLogic(repo);

            log.Add(pocos);
        }
        public override Task <Empty> CreateCompanyJobSkill(ComJobSkillArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Add(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
Exemple #8
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] item)
        {
            EFGenericRepository <CompanyJobSkillPoco> companyjobskillrepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic _companyjobskilllogic = new CompanyJobSkillLogic(companyjobskillrepo);

            _companyjobskilllogic.Add(item);
        }
Exemple #9
0
 public IHttpActionResult PostCompanyJobSkill(CompanyJobSkillPoco[] companyJobSkill)
 {
     if (companyJobSkill == null)
     {
         return(NotFound());
     }
     _logic.Add(companyJobSkill);
     return(Ok());
 }
        public ActionResult Create([Bind(Include = "Id,Company,ProfileCreated,IsInactive,IsCompanyHidden,TimeStamp")] CompanyJobPoco companyJobPoco, string JobName, string JobDescriptions, string Major, int Importance, string Skill, string SkillLevel, short EImportance)
        {
            Session["Company"] = companyJobPoco.Company;
            if (ModelState.IsValid)
            {
                companyJobPoco.Id             = Guid.NewGuid();
                companyJobPoco.ProfileCreated = DateTime.Now;
                compJobPoco[0] = companyJobPoco;

                CompanyJobSkillPoco companySkillsPoco = new CompanyJobSkillPoco();
                companySkillsPoco.Id         = Guid.NewGuid();
                companySkillsPoco.Job        = companyJobPoco.Id;
                companySkillsPoco.Skill      = Skill;
                companySkillsPoco.SkillLevel = SkillLevel;
                companySkillsPoco.Importance = Importance;
                CompanyJobSkillPoco[] compJobSkillPoco = new CompanyJobSkillPoco[]
                {
                    companySkillsPoco
                };

                CompanyJobEducationPoco companyJobEducationPoco = new CompanyJobEducationPoco();
                companyJobEducationPoco.Id         = Guid.NewGuid();
                companyJobEducationPoco.Job        = companyJobPoco.Id;
                companyJobEducationPoco.Major      = Major;
                companyJobEducationPoco.Importance = EImportance;
                CompanyJobEducationPoco[] compEducationPoco = new CompanyJobEducationPoco[]
                {
                    companyJobEducationPoco
                };

                CompanyJobDescriptionPoco companyJobDescriptionPoco = new CompanyJobDescriptionPoco();
                companyJobDescriptionPoco.Id              = Guid.NewGuid();
                companyJobDescriptionPoco.Job             = companyJobPoco.Id;
                companyJobDescriptionPoco.JobName         = JobName;
                companyJobDescriptionPoco.JobDescriptions = JobDescriptions;
                CompanyJobDescriptionPoco[] compJobDescriptionPoco = new CompanyJobDescriptionPoco[]
                {
                    companyJobDescriptionPoco
                };


                companyJobLogic.Add(compJobPoco);
                companyJobSkillLogic.Add(compJobSkillPoco);
                companyJobEducationLogic.Add(compEducationPoco);
                companyJobDescriptionLogic.Add(compJobDescriptionPoco);

                //return RedirectToAction("Details", "CompanyProfile", new { id = companyJobPoco.Company });
                return(RedirectToAction("Details", "CompanyJob", new { id = companyJobPoco.Company }));
            }

            ViewBag.Company = new SelectList(companyJobLogic.GetAll(), "Company", "Company");

            return(View(companyJobPoco));
        }
 public IHttpActionResult  PostCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logic.Add(pocos);
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
Exemple #12
0
        public override Task <Empty> CreateCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
        {
            CompanyJobSkillPoco[] pocos = new CompanyJobSkillPoco[1];

            pocos[0].Id         = Guid.Parse(request.Id);
            pocos[0].Job        = Guid.Parse(request.Job);
            pocos[0].Skill      = request.Skill;
            pocos[0].SkillLevel = request.SkillLevel;
            pocos[0].Importance = request.Importance;

            _logic.Add(pocos);
            return(new Task <Empty>(null));
        }
 public override Task <Empty> CreateCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
 {
     CompanyJobSkillPoco[] poco = { new CompanyJobSkillPoco()
                                    {
                                        Id         = Guid.Parse(request.Id),
                                        Job        = Guid.Parse(request.Job),
                                        Importance = request.Importance,
                                        Skill      = request.Skill,
                                        SkillLevel = request.SkillLevel
                                    } };
     _logic.Add(poco);
     return(new Task <Empty>(() => new Empty()));
 }
Exemple #14
0
        public override Task <Empty> CreateCompanyJobSkill(CompanyJobSkillsPayload request, ServerCallContext context)
        {
            CompanyJobSkillPoco poco = new CompanyJobSkillPoco()
            {
                Id         = Guid.Parse(request.Id),
                Importance = request.Importance,
                Job        = Guid.Parse(request.Job),
                Skill      = request.Skill,
                SkillLevel = request.SkillLevel
            };

            _logic.Add(new CompanyJobSkillPoco[] { poco });
            return(null);
        }
 public override Task <Empty> CreateCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
 {
     CompanyJobSkillPoco[] pocos = new CompanyJobSkillPoco[1];
     foreach (var poco in pocos)
     {
         poco.Id         = Guid.Parse(request.Id);
         poco.Job        = Guid.Parse(request.Job);
         poco.Skill      = request.Skill;
         poco.SkillLevel = request.SkillLevel;
         poco.Importance = request.Importance;
     }
     _logic.Add(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
        public ActionResult Create([Bind(Include = "Id,SkillLevel,TimeStamp,Skill,Importance,Job")] CompanyJobSkillPoco companyJobSkillPoco)
        {
            if (ModelState.IsValid)
            {
                companyJobSkillPoco.Id = Guid.NewGuid();
                //db.CompanyJobSkill.Add(companyJobSkillPoco);
                //db.SaveChanges();
                _logic.Add(new CompanyJobSkillPoco[] { companyJobSkillPoco });
                return(RedirectToAction("Index"));
            }

            ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobSkillPoco.Job);
            return(View(companyJobSkillPoco));
        }
Exemple #17
0
 public ActionResult PostCompanyJobSkill([FromBody] CompanyJobSkillPoco[] jobskill)
 {
     try
     {
         _logic.Add(jobskill);
         return(Ok());
     }
     catch (AggregateException e)
     {
         return(BadRequest(e));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
Exemple #18
0
        public ActionResult Create([Bind(Include = "JobName,JobDescription,Major,EduImportance, Skill, SkillLevel, SkillImportance, Created, IfInactive,IfHidden")] CompanyJobPost companyJobPost)
        {
            CompanyJobPoco jobPoco = new CompanyJobPoco
            {
                Id              = Guid.NewGuid(),
                Company         = (Guid)TempData["Company"],
                ProfileCreated  = DateTime.Now,
                IsInactive      = companyJobPost.IfInactive,
                IsCompanyHidden = companyJobPost.IfHidden
            };

            TempData.Keep();
            _jobLogic.Add(new CompanyJobPoco[] { jobPoco });

            CompanyJobDescriptionPoco jobDescPoco = new CompanyJobDescriptionPoco
            {
                Id              = Guid.NewGuid(),
                Job             = jobPoco.Id,
                JobName         = companyJobPost.JobName,
                JobDescriptions = companyJobPost.JobDescription
            };

            _descLogic.Add(new CompanyJobDescriptionPoco[] { jobDescPoco });

            CompanyJobSkillPoco jobSkillPoco = new CompanyJobSkillPoco()
            {
                Id         = Guid.NewGuid(),
                Job        = jobPoco.Id,
                Skill      = companyJobPost.Skill,
                SkillLevel = companyJobPost.SkillLevel,
                Importance = companyJobPost.SkillImportance
            };

            _skillLogic.Add(new CompanyJobSkillPoco[] { jobSkillPoco });

            CompanyJobEducationPoco jobEduPoco = new CompanyJobEducationPoco()
            {
                Id         = Guid.NewGuid(),
                Job        = jobPoco.Id,
                Major      = companyJobPost.Major,
                Importance = companyJobPost.EduImportance
            };

            _eduLogic.Add(new CompanyJobEducationPoco[] { jobEduPoco });

            return(RedirectToAction("Index"));
        }
Exemple #19
0
 public IHttpActionResult PostCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logicObj.Add(pocos);
         return(this.Ok());
     }
     catch (AggregateException e)
     {
         IEnumerable <ValidationException> exceptions = e.InnerExceptions.Cast <ValidationException>();
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, exceptions.FirstOrDefault());
         throw new HttpResponseException(response);
     }
     catch (Exception e)
     {
         HttpResponseMessage response =
             this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e);
         throw new HttpResponseException(response);
     }
 }
 public void AddCompanyJobSkill(CompanyJobSkillPoco[] item)
 {
     _companyJobSkill.Add(item);
 }
Exemple #21
0
 public void AddCompanyJobSkill(CompanyJobSkillPoco[] pocos)
 {
     _CompanyJobSkillLogic.Add(pocos);
 }
Exemple #22
0
 public void addCompanyJobSkillPoco(CompanyJobSkillPoco[] items)
 {
     _logicJobSkill.Add(items);
 }
Exemple #23
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            var logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            logic.Add(pocos);
        }
Exemple #24
0
 public IHttpActionResult PostCompanyJobSkill([FromBody] CompanyJobSkillPoco[] CompanyJobSkills)
 {
     _logic.Add(CompanyJobSkills);
     return(Ok());
 }
Exemple #25
0
        public void AddCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var reference = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            reference.Add(items);
        }
 public ActionResult PutCompanyJobSkill([FromBody] CompanyJobSkillPoco[] appEdupocos)
 {
     _logic.Add(appEdupocos);
     return(Ok());
 }
Exemple #27
0
 public void AddCompanyJobSkill(CompanyJobSkillPoco[] item)
 {
     _cjsLogic.Add(item);
 }
Exemple #28
0
 public ActionResult PostCompanyJobSkill(
     [FromBody] CompanyJobSkillPoco[] copmanyJobSkillsPoco)
 {
     _logic.Add(copmanyJobSkillsPoco);
     return(Ok());
 }
Exemple #29
0
 public override Task <Empty> CreateCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
 {
     _logic.Add(GetArray(request));
     return(new Task <Empty>(null));
 }