public ActionResult DeleteCompanyJobsDescription(
            [FromBody] CompanyJobDescriptionPoco[] pocos)
        {
            _logic.Delete(pocos);

            return(Ok());
        }
Пример #2
0
        public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco poco = _logic.Get(Guid.Parse(request.Id));

            _logic.Delete(new CompanyJobDescriptionPoco[] { poco });
            return(new Task <Empty>(() => new Empty()));
        }
Пример #3
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] items)
        {
            EFGenericRepository <CompanyJobDescriptionPoco> CompanyJobDescriptionRepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            var Logic = new CompanyJobDescriptionLogic(CompanyJobDescriptionRepo);

            Logic.Delete(items);
        }
Пример #4
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] pocos)
        {
            EFGenericRepository <CompanyJobDescriptionPoco> repo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(repo);

            logic.Delete(pocos);
        }
Пример #5
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] pocos)
        {
            ApplicantProfileRepository <CompanyJobDescriptionPoco> repo = new ApplicantProfileRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic log = new CompanyJobDescriptionLogic(repo);

            log.Delete(pocos);
        }
Пример #6
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] items)
        {
            EFGenericRepository <CompanyJobDescriptionPoco> companyjobdescriptionrepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false);
            CompanyJobDescriptionLogic _companyjobdescriptionlogic = new CompanyJobDescriptionLogic(companyjobdescriptionrepo);

            _companyjobdescriptionlogic.Delete(items);
        }
Пример #7
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] items)
        {
            var logic = new CompanyJobDescriptionLogic
                            (new EFGenericRepository <CompanyJobDescriptionPoco>());

            logic.Delete(items);
        }
Пример #8
0
        public override Task <Empty> DeleteCompanyJobDescription(CompJobDescArray request, ServerCallContext context)
        {
            var pocos = ProtoToPoco(request);

            _logic.Delete(pocos.ToArray());
            return(new Task <Empty>(() => new Empty()));
        }
 public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
 {
     _ = _logic.Get(Guid.Parse(request.Id)) ??
         throw new ArgumentNullException("No Company Job Description Record with this Id Found ");
     _logic.Delete(new CompanyJobDescriptionPoco[] { _logic.Get(Guid.Parse(request.Id)) });
     return(null);
 }
        public ActionResult DeleteConfirmed(Guid id)
        {
            CompanyJobDescriptionPoco companyJobDescriptionPoco = companyJobDescriptionLogic.Get(id); //db.CompanyJobDescriptions.Find(id);

            compJobDescriptionPoco[0] = companyJobDescriptionPoco;
            companyJobDescriptionLogic.Delete(compJobDescriptionPoco);
            return(RedirectToAction("Index"));
        }
        public ActionResult DeleteConfirmed(Guid id)
        {
            CompanyJobDescriptionPoco companyJobDescriptionPoco = _logic.Get(id);  // db.CompanyJobDescription.Find(id);

            //db.CompanyJobDescription.Remove(companyJobDescriptionPoco);
            //db.SaveChanges();
            _logic.Delete(new CompanyJobDescriptionPoco[] { companyJobDescriptionPoco });
            return(RedirectToAction("Index"));
        }
 public IHttpActionResult DeleteCompanyJobsDescription(CompanyJobDescriptionPoco[] companyJobDescription)
 {
     if (companyJobDescription == null)
     {
         return(NotFound());
     }
     _logic.Delete(companyJobDescription);
     return(Ok());
 }
 public IHttpActionResult DeleteCompanyJobDescription([FromBody] CompanyJobDescriptionPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok(pocos));
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
 public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
 {
     CompanyJobDescriptionPoco[] pocos = new CompanyJobDescriptionPoco[1];
     foreach (var poco in pocos)
     {
         poco.Id              = Guid.Parse(request.Id);
         poco.Job             = Guid.Parse(request.Job);
         poco.JobName         = request.JobName;
         poco.JobDescriptions = request.JobDescriptions;
     }
     _logic.Delete(pocos);
     return(new Task <Empty>(() => new Empty()));
 }
Пример #15
0
        public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco[] pocos = new CompanyJobDescriptionPoco[1];

            pocos[0].Id              = Guid.Parse(request.Id);
            pocos[0].Job             = Guid.Parse(request.Job);
            pocos[0].JobName         = request.JobName;
            pocos[0].JobDescriptions = request.JobDescriptions;


            _logic.Delete(pocos);
            return(new Task <Empty>(null));
        }
        public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco[] poco = { new CompanyJobDescriptionPoco()
                                                 {
                                                     Id              = Guid.Parse(request.Id),
                                                     Job             = Guid.Parse(request.Job),
                                                     JobName         = request.JobName,
                                                     JobDescriptions = request.JobDescriptions
                                                 } };

            _logic.Delete(poco);
            return(new Task <Empty>(() => new Empty()));
        }
Пример #17
0
        public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayLoad request, ServerCallContext context)
        {
            CompanyJobDescriptionPoco poco = new CompanyJobDescriptionPoco()
            {
                Id              = new Guid(request.Id),
                Job             = new Guid(request.Job),
                JobName         = request.JobName,
                JobDescriptions = request.JobDescriptions
            };

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


            return(null);
        }
Пример #18
0
 public ActionResult DeleteCompanyJobsDescription([FromBody] CompanyJobDescriptionPoco[] pocos)
 {
     try
     {
         _logic.Delete(pocos);
         return(Ok());
     }
     catch (AggregateException ex)
     {
         return(BadRequest(ex));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
Пример #19
0
 public IHttpActionResult DeleteCompanyJobsDescription([FromBody] CompanyJobDescriptionPoco[] 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);
     }
 }
Пример #20
0
 public void removeCompanyJobDescriptionPoco(CompanyJobDescriptionPoco[] items)
 {
     _logicAJL.Delete(items);
 }
Пример #21
0
 public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] pocos)
 {
     _CompanyJobDescriptionLogic.Delete(pocos);
 }
Пример #22
0
        public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] items)
        {
            var reference = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false));

            reference.Delete(items);
        }
Пример #23
0
 public override Task <Empty> DeleteCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context)
 {
     _logic.Delete(GetArray(request));
     return(new Task <Empty>(null));
 }
Пример #24
0
 public void RemoveCompanyJobDescription(CompanyJobDescriptionPoco[] item)
 {
     _cjdLogic.Delete(item);
 }