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

            Logic.Update(items);
        }
예제 #2
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            EFGenericRepository <CompanyJobSkillPoco> companyjobskillrepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic _companyjobskilllogic = new CompanyJobSkillLogic(companyjobskillrepo);

            _companyjobskilllogic.Update(items);
        }
예제 #3
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            EFGenericRepository <CompanyJobSkillPoco> repo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic logic = new CompanyJobSkillLogic(repo);

            logic.Update(pocos);
        }
예제 #4
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var logic = new CompanyJobSkillLogic
                            (new EFGenericRepository <CompanyJobSkillPoco>());

            logic.Update(items);
        }
예제 #5
0
        public ActionResult PutCompanyJobSkill(
            [FromBody] CompanyJobSkillPoco[] pocos)
        {
            _logic.Update(pocos);

            return(Ok());
        }
예제 #6
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            ApplicantProfileRepository <CompanyJobSkillPoco> repo = new ApplicantProfileRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic log = new CompanyJobSkillLogic(repo);

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

            _logic.Update(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
예제 #8
0
 public IHttpActionResult PutCompanyJobSkill(CompanyJobSkillPoco[] companyJobSkill)
 {
     if (companyJobSkill == null)
     {
         return(NotFound());
     }
     _logic.Update(companyJobSkill);
     return(Ok());
 }
예제 #9
0
 public ActionResult Edit([Bind(Include = "Id,Job,Skill,SkillLevel,Importance,TimeStamp")] CompanyJobSkillPoco companyJobSkillPoco)
 {
     if (ModelState.IsValid)
     {
         compJobSkillsPoco[0] = companyJobSkillPoco;
         companyJobSkillLogic.Update(compJobSkillsPoco);
         return(RedirectToAction("Index"));
     }
     ViewBag.Job = new SelectList(companyJobSkillLogic.GetAll(), "Job", "Job");
     return(View(companyJobSkillPoco));
 }
 public IHttpActionResult  PutCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logic.Update(pocos);
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
 public ActionResult Edit([Bind(Include = "Id,SkillLevel,TimeStamp,Skill,Importance,Job")] CompanyJobSkillPoco companyJobSkillPoco)
 {
     if (ModelState.IsValid)
     {
         //db.Entry(companyJobSkillPoco).State = EntityState.Modified;
         //db.SaveChanges();
         _logic.Update(new CompanyJobSkillPoco[] { companyJobSkillPoco });
         return(RedirectToAction("Index"));
     }
     ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobSkillPoco.Job);
     return(View(companyJobSkillPoco));
 }
 public override Task <Empty> UpdateCompanyJobSkill(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.Update(poco);
     return(new Task <Empty>(() => new Empty()));
 }
 public override Task <Empty> UpdateCompanyJobSkill(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.Update(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
예제 #14
0
        public override Task <Empty> UpdateCompanyJobSkill(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.Update(pocos);
            return(new Task <Empty>(null));
        }
        public override Task <Empty> UpdateCompanyJobSkill(CompanyJobSkillPayLoad request, ServerCallContext context)
        {
            CompanyJobSkillPoco poco = new CompanyJobSkillPoco()
            {
                Id         = new Guid(request.Id),
                Job        = new Guid(request.Job),
                Skill      = request.Skill,
                SkillLevel = request.SkillLevel,
                Importance = request.Importance
            };

            _logic.Update(new CompanyJobSkillPoco[] { poco });

            return(null);
        }
예제 #16
0
        public override Task <Empty> UpdateCompanyJobSkill(CompanyJobSkillsPayload request, ServerCallContext context)
        {
            _ = _logic.Get(Guid.Parse(request.Id)) ?? throw new ArgumentNullException("No Company Job Skill Record with this Id Found");

            var poco = new CompanyJobSkillPoco()
            {
                Id         = Guid.Parse(request.Id),
                Importance = request.Importance,
                Job        = Guid.Parse(request.Job),
                Skill      = request.Skill,
                SkillLevel = request.SkillLevel
            };

            _logic.Update(new CompanyJobSkillPoco[] { poco });
            return(null);
        }
예제 #17
0
 public ActionResult PutCompanyJobSkill([FromBody] CompanyJobSkillPoco[] jobskill)
 {
     try
     {
         _logic.Update(jobskill);
         return(Ok());
     }
     catch (AggregateException e)
     {
         return(BadRequest(e));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
예제 #18
0
 public IHttpActionResult PutCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logicObj.Update(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);
     }
 }
예제 #19
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            var logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            logic.Update(pocos);
        }
예제 #20
0
 public IHttpActionResult PutCompanyJobSkill([FromBody] CompanyJobSkillPoco[] CompanyJobSkills)
 {
     _logic.Update(CompanyJobSkills);
     return(Ok());
 }
예제 #21
0
        public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var reference = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            reference.Update(items);
        }
 public ActionResult PostCompanyJobSkill([FromBody] CompanyJobSkillPoco[] appEdupocos)
 {
     _logic.Update(appEdupocos);
     return(Ok());
 }
예제 #23
0
 public void updateCompanyJobSkillPoco(CompanyJobSkillPoco[] items)
 {
     _logicJobSkill.Update(items);
 }
예제 #24
0
 public override Task <Empty> UpdateCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
 {
     _logic.Update(GetArray(request));
     return(new Task <Empty>(null));
 }
예제 #25
0
 public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] items)
 {
     _cjsLogic.Update(items);
 }
예제 #26
0
 public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] item)
 {
     _companyJobSkill.Update(item);
 }
예제 #27
0
 public void UpdateCompanyJobSkill(CompanyJobSkillPoco[] pocos)
 {
     _CompanyJobSkillLogic.Update(pocos);
 }