Ejemplo n.º 1
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            EFGenericRepository <CompanyJobSkillPoco> CompanyJobSkillRepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            var Logic = new CompanyJobSkillLogic(CompanyJobSkillRepo);

            Logic.Delete(items);
        }
Ejemplo n.º 2
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            EFGenericRepository <CompanyJobSkillPoco> companyjobskillrepo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic _companyjobskilllogic = new CompanyJobSkillLogic(companyjobskillrepo);

            _companyjobskilllogic.Delete(items);
        }
Ejemplo n.º 3
0
        public override Task <Empty> DeleteCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
        {
            CompanyJobSkillPoco poco = _logic.Get(Guid.Parse(request.Id));

            _logic.Delete(new CompanyJobSkillPoco[] { poco });
            return(new Task <Empty>(() => new Empty()));
        }
Ejemplo n.º 4
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var logic = new CompanyJobSkillLogic
                            (new EFGenericRepository <CompanyJobSkillPoco>());

            logic.Delete(items);
        }
Ejemplo n.º 5
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            EFGenericRepository <CompanyJobSkillPoco> repo = new EFGenericRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic logic = new CompanyJobSkillLogic(repo);

            logic.Delete(pocos);
        }
Ejemplo n.º 6
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] pocos)
        {
            ApplicantProfileRepository <CompanyJobSkillPoco> repo = new ApplicantProfileRepository <CompanyJobSkillPoco>(false);
            CompanyJobSkillLogic log = new CompanyJobSkillLogic(repo);

            log.Delete(pocos);
        }
Ejemplo n.º 7
0
 public override Task <Empty> DeleteCompanyJobSkill(CompanyJobSkillsPayload request, ServerCallContext context)
 {
     _ = _logic.Get(Guid.Parse(request.Id)) ??
         throw new ArgumentNullException("No Company Job Skill Record with this Id Found ");
     _logic.Delete(new CompanyJobSkillPoco[] { _logic.Get(Guid.Parse(request.Id)) });
     return(null);
 }
Ejemplo n.º 8
0
        public ActionResult DeleteCompanyJobSkill(
            [FromBody] CompanyJobSkillPoco[] pocos)
        {
            _logic.Delete(pocos);

            return(Ok());
        }
        public override Task <Empty> DeleteCompanyJobSkill(ComJobSkillArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Delete(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
Ejemplo n.º 10
0
        public ActionResult DeleteConfirmed(Guid id)
        {
            CompanyJobSkillPoco companyJobSkillPoco = companyJobSkillLogic.Get(id); //db.CompanyJobSkills.Find(id);

            compJobSkillsPoco[0] = companyJobSkillPoco;
            companyJobSkillLogic.Delete(compJobSkillsPoco);
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 11
0
 public IHttpActionResult DeleteCompanyJobSkill(CompanyJobSkillPoco[] companyJobSkill)
 {
     if (companyJobSkill == null)
     {
         return(NotFound());
     }
     _logic.Delete(companyJobSkill);
     return(Ok());
 }
        public ActionResult DeleteConfirmed(Guid id)
        {
            CompanyJobSkillPoco companyJobSkillPoco = _logic.Get(id);  // db.CompanyJobSkill.Find(id);

            //db.CompanyJobSkill.Remove(companyJobSkillPoco);
            //db.SaveChanges();
            _logic.Delete(new CompanyJobSkillPoco[] { companyJobSkillPoco });
            return(RedirectToAction("Index"));
        }
 public IHttpActionResult DeleteCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
 public override Task <Empty> DeleteCompanyJobSkill(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.Delete(poco);
     return(new Task <Empty>(() => new Empty()));
 }
Ejemplo n.º 15
0
        public override Task <Empty> DeleteCompanyJobSkill(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.Delete(pocos);
            return(new Task <Empty>(null));
        }
 public override Task <Empty> DeleteCompanyJobSkill(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.Delete(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
 public ActionResult DeleteCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok());
     }
     catch (AggregateException ex)
     {
         return(BadRequest(ex));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
        public override Task <Empty> DeleteCompanyJobSkill(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.Delete(new CompanyJobSkillPoco[] { poco });


            return(null);
        }
Ejemplo n.º 19
0
 public IHttpActionResult DeleteCompanyJobSkill([FromBody] CompanyJobSkillPoco[] pocos)
 {
     try
     {
         _logicObj.Delete(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);
     }
 }
Ejemplo n.º 20
0
 public void removeCompanyJobSkillPoco(CompanyJobSkillPoco[] items)
 {
     _logicJobSkill.Delete(items);
 }
Ejemplo n.º 21
0
 public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] item)
 {
     _cjsLogic.Delete(item);
 }
Ejemplo n.º 22
0
 public override Task <Empty> DeleteCompanyJobSkill(CompanyJobSkillPayload request, ServerCallContext context)
 {
     _logic.Delete(GetArray(request));
     return(new Task <Empty>(null));
 }
Ejemplo n.º 23
0
 public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] pocos)
 {
     _CompanyJobSkillLogic.Delete(pocos);
 }
Ejemplo n.º 24
0
 public IHttpActionResult DeleteCompanyJobSkill([FromBody] CompanyJobSkillPoco[] CompanyJobSkills)
 {
     _logic.Delete(CompanyJobSkills);
     return(Ok());
 }
Ejemplo n.º 25
0
        public void RemoveCompanyJobSkill(CompanyJobSkillPoco[] items)
        {
            var reference = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false));

            reference.Delete(items);
        }