public ActionResult DeleteApplicantSkill(
            [FromBody] ApplicantSkillPoco[] pocos)
        {
            _logic.Delete(pocos);

            return(Ok());
        }
Beispiel #2
0
        public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
        {
            ApplicantSkillPoco poco = _logic.Get(Guid.Parse(request.Id));

            _logic.Delete(new ApplicantSkillPoco[] { poco });
            return(new Task <Empty>(() => new Empty()));
        }
Beispiel #3
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] items)
        {
            var logic = new ApplicantSkillLogic
                            (new EFGenericRepository <ApplicantSkillPoco>());

            logic.Delete(items);
        }
        public void RemoveApplicantSkill(ApplicantSkillPoco[] pocos)
        {
            EFGenericRepository <ApplicantSkillPoco> repo = new EFGenericRepository <ApplicantSkillPoco>(false);
            ApplicantSkillLogic logic = new ApplicantSkillLogic(repo);

            logic.Delete(pocos);
        }
Beispiel #5
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] items)
        {
            EFGenericRepository <ApplicantSkillPoco> ApplicantSkillRepo = new EFGenericRepository <ApplicantSkillPoco>(false);
            var Logic = new ApplicantSkillLogic(ApplicantSkillRepo);

            Logic.Delete(items);
        }
        public override Task <Empty> DeleteApplicantSkill(AppSkillArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Delete(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
            public ActionResult DeleteConfirmed(Guid id)
            {
                ApplicantSkillPoco applicantSkill = _logic.Get(id);

                _logic.Delete(new ApplicantSkillPoco[] { applicantSkill });
                return(RedirectToAction("Index"));
            }
Beispiel #8
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] items)
        {
            EFGenericRepository <ApplicantSkillPoco> applicantskillrepo = new EFGenericRepository <ApplicantSkillPoco>(false);
            ApplicantSkillLogic _applicantskilllogic = new ApplicantSkillLogic(applicantskillrepo);

            _applicantskilllogic.Delete(items);
        }
 public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
 {
     _ = _logic.Get(Guid.Parse(request.Id)) ??
         throw new ArgumentNullException("No Applicant Skill Record with this Id Found ");
     _logic.Delete(new ApplicantSkillPoco[] { _logic.Get(Guid.Parse(request.Id)) });
     return(null);
 }
Beispiel #10
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] pocos)
        {
            ApplicantProfileRepository <ApplicantSkillPoco> repo = new ApplicantProfileRepository <ApplicantSkillPoco>(false);
            ApplicantSkillLogic log = new ApplicantSkillLogic(repo);

            log.Delete(pocos);
        }
        public ActionResult DeleteConfirmed(Guid id)
        {
            ApplicantSkillPoco applicantSkillPoco = applicantSkillLogic.Get(id);//db.ApplicantSkills.Find(id);

            appSkillPoco[0] = applicantSkillPoco;
            applicantSkillLogic.Delete(appSkillPoco);
            return(RedirectToAction("Index"));
        }
        public IActionResult DeleteConfirmed(Guid id)
        {
            var applicantSkillPoco = _logic.Get(id);

            _logic.Delete(new ApplicantSkillPoco[] { applicantSkillPoco });

            return(RedirectToAction(nameof(Details), "ApplicantProfile", new { Id = applicantSkillPoco.Applicant }));
        }
Beispiel #13
0
        public ActionResult DeleteConfirmed(Guid id)
        {
            ApplicantSkillPoco applicantSkillPoco = _logic.Get(id); //db.ApplicantSkill.Find(id);

            //db.ApplicantSkill.Remove(applicantSkillPoco);
            //db.SaveChanges();
            _logic.Delete(new ApplicantSkillPoco[] { applicantSkillPoco });
            return(RedirectToAction("Index"));
        }
Beispiel #14
0
 public IHttpActionResult DeleteApplicantSkill(ApplicantSkillPoco[] applicantSkill)
 {
     if (applicantSkill == null)
     {
         return(NotFound());
     }
     _logic.Delete(applicantSkill);
     return(Ok());
 }
 public IHttpActionResult DeleteApplicantSkill([FromBody] ApplicantSkillPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok());
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
Beispiel #16
0
 public ActionResult DeleteApplicantSkill([FromBody] ApplicantSkillPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok());
     }
     catch (AggregateException ex)
     {
         return(BadRequest(ex));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
 public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
 {
     ApplicantSkillPoco[] pocos = new ApplicantSkillPoco[1];
     foreach (var poco in pocos)
     {
         poco.Id         = Guid.Parse(request.Id);
         poco.Applicant  = Guid.Parse(request.Applicant);
         poco.Skill      = request.Skill;
         poco.SkillLevel = request.SkillLevel;
         poco.StartMonth = (byte)request.StartMonth;
         poco.StartYear  = (byte)request.StartYear;
         poco.EndMonth   = (byte)request.EndMonth;
         poco.EndYear    = request.EndYear;
     }
     _logic.Delete(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
Beispiel #18
0
        public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
        {
            ApplicantSkillPoco[] pocos = new ApplicantSkillPoco[1];

            pocos[0].Id         = Guid.Parse(request.Id);
            pocos[0].Applicant  = Guid.Parse(request.Applicant);
            pocos[0].Skill      = request.Skill;
            pocos[0].SkillLevel = request.SkillLevel;
            pocos[0].StartMonth = Convert.ToByte(request.StartMonth);
            pocos[0].StartYear  = request.StartYear;
            pocos[0].EndMonth   = Convert.ToByte(request.EndMonth);
            pocos[0].EndYear    = request.EndYear;


            _logic.Delete(pocos);
            return(new Task <Empty>(null));
        }
Beispiel #19
0
        public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
        {
            ApplicantSkillPoco[] poco = { new ApplicantSkillPoco()
                                          {
                                              Id         = Guid.Parse(request.Id),
                                              Applicant  = Guid.Parse(request.Applicant),
                                              Skill      = request.Skill,
                                              SkillLevel = request.SkillLevel,
                                              StartMonth = (byte)request.StartMonth,
                                              StartYear  = request.StartYear,
                                              EndMonth   = (byte)request.EndMonth,
                                              EndYear    = request.EndYear
                                          } };

            _logic.Delete(poco);
            return(new Task <Empty>(() => new Empty()));
        }
Beispiel #20
0
        public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayLoad request, ServerCallContext context)
        {
            ApplicantSkillPoco poco = new ApplicantSkillPoco()
            {
                Id         = new Guid(request.Id),
                Applicant  = new Guid(request.Applicant),
                Skill      = request.Skill,
                SkillLevel = request.SkillLevel,
                StartMonth = (byte)request.StartMonth,
                StartYear  = request.StartYear,
                EndMonth   = (byte)request.EndMonth,
                EndYear    = request.EndYear
            };

            _logic.Delete(new ApplicantSkillPoco[] { poco });


            return(null);
        }
 public IHttpActionResult DeleteApplicantSkill([FromBody] ApplicantSkillPoco[] 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);
     }
 }
Beispiel #22
0
 public void RemoveApplicantSkill(ApplicantSkillPoco[] pocos)
 {
     _ApplicantSkillLogic.Delete(pocos);
 }
Beispiel #23
0
 public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayload request, ServerCallContext context)
 {
     _logic.Delete(GetArray(request));
     return(new Task <Empty>(null));
 }
Beispiel #24
0
 public void removeApplicantSkillPoco(ApplicantSkillPoco[] items)
 {
     _logicApplicantSkillLogic.Delete(items);
 }
Beispiel #25
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] pocos)
        {
            var logic = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false));

            logic.Delete(pocos);
        }
Beispiel #26
0
 public void RemoveApplicantSkill(ApplicantSkillPoco[] item)
 {
     _sLogic.Delete(item);
 }
Beispiel #27
0
 public IHttpActionResult DeleteApplicantSkill([FromBody] ApplicantSkillPoco[] ApplicantSkills)
 {
     _logic.Delete(ApplicantSkills);
     return(Ok());
 }
Beispiel #28
0
        public void RemoveApplicantSkill(ApplicantSkillPoco[] items)
        {
            var reference = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false));

            reference.Delete(items);
        }