Beispiel #1
0
        public void UpdateApplicantResume(ApplicantResumePoco[] items)
        {
            EFGenericRepository <ApplicantResumePoco> applicantresumerepo = new EFGenericRepository <ApplicantResumePoco>(false);
            ApplicantResumeLogic _applicantresumelogic = new ApplicantResumeLogic(applicantresumerepo);

            _applicantresumelogic.Update(items);
        }
        public ActionResult PutApplicantResume(
            [FromBody] ApplicantResumePoco[] pocos)
        {
            _logic.Update(pocos);

            return(Ok());
        }
        public void UpdateApplicantResume(ApplicantResumePoco[] pocos)
        {
            EFGenericRepository <ApplicantResumePoco> repo = new EFGenericRepository <ApplicantResumePoco>(false);
            ApplicantResumeLogic logic = new ApplicantResumeLogic(repo);

            logic.Update(pocos);
        }
Beispiel #4
0
        public void UpdateApplicantResume(ApplicantResumePoco[] items)
        {
            EFGenericRepository <ApplicantResumePoco> ApplicantResumeRepo = new EFGenericRepository <ApplicantResumePoco>(false);
            var Logic = new ApplicantResumeLogic(ApplicantResumeRepo);

            Logic.Update(items);
        }
Beispiel #5
0
        public void UpdateApplicantResume(ApplicantResumePoco[] pocos)
        {
            ApplicantProfileRepository <ApplicantResumePoco> repo = new ApplicantProfileRepository <ApplicantResumePoco>(false);
            ApplicantResumeLogic log = new ApplicantResumeLogic(repo);

            log.Update(pocos);
        }
Beispiel #6
0
        public void UpdateApplicantResume(ApplicantResumePoco[] items)
        {
            var logic = new ApplicantResumeLogic
                            (new EFGenericRepository <ApplicantResumePoco>());

            logic.Update(items);
        }
Beispiel #7
0
 public IHttpActionResult PutApplicantResume(ApplicantResumePoco[] applicantResume)
 {
     if (applicantResume == null)
     {
         return(NotFound());
     }
     _logic.Update(applicantResume);
     return(Ok());
 }
 public ActionResult Edit([Bind(Include = "Id,Applicant,Resume,LastUpdated")] ApplicantResumePoco applicantResumePoco)
 {
     if (ModelState.IsValid)
     {
         appResumePoco[0] = applicantResumePoco;
         applicantResumeLogic.Update(appResumePoco);
         return(RedirectToAction("Index"));
     }
     ViewBag.Applicant = new SelectList(applicantResumeLogic.GetAll(), "Applicant", "Applicant");
     return(View(applicantResumePoco));
 }
 public ActionResult Edit([Bind(Include = "Id,Applicant,Resume,LastUpdated")] ApplicantResumePoco applicantResumePoco)
 {
     if (ModelState.IsValid)
     {
         //db.Entry(applicantResumePoco).State = EntityState.Modified;
         //db.SaveChanges();
         _logic.Update(new ApplicantResumePoco[] { applicantResumePoco });
         return(RedirectToAction("Index"));
     }
     ViewBag.Applicant = new SelectList(db.ApplicantProfile, "Id", "Country", applicantResumePoco.Applicant);
     return(View(applicantResumePoco));
 }
Beispiel #10
0
 public ActionResult Edit([Bind(Include = "Id,Applicant,Resume,Last_Updated")] ApplicantResumePoco applicant_Resumes)
 {
     if (ModelState.IsValid)
     {
         applicant_Resumes.LastUpdated = DateTime.Now;
         applicant_Resumes.Applicant   = (Guid)TempData["Applicant"];
         TempData.Keep();
         _logic.Update(new ApplicantResumePoco[] { applicant_Resumes });
         return(RedirectToAction("Index"));
     }
     return(View(applicant_Resumes));
 }
 public IHttpActionResult PutApplicantResume([FromBody] ApplicantResumePoco[] pocos)
 {
     try
     {
         _logic.Update(pocos);
         return(Ok());
     }
     catch (Exception e)
     {
         return(InternalServerError(e));
     }
 }
        public override Task <Empty> UpdateApplicantResume(ApplicantResumePayload request, ServerCallContext context)
        {
            ApplicantResumePoco[] poco = { new ApplicantResumePoco()

                                           {
                                               Id          = Guid.Parse(request.Id),
                                               Applicant   = Guid.Parse(request.Applicant),
                                               Resume      = request.Resume,
                                               LastUpdated = DateTime.Parse(request.LastUpdated.ToString())
                                           } };

            _logic.Update(poco);
            return(new Task <Empty>(() => new Empty()));
        }
        public override Task <Empty> UpdateApplicantResume(ApplicantResumePayload request, ServerCallContext context)
        {
            ApplicantResumePoco[] pocos = new ApplicantResumePoco[1];


            pocos[0].Id          = Guid.Parse(request.Id);
            pocos[0].Applicant   = Guid.Parse(request.Applicant);
            pocos[0].Resume      = request.Resume;
            pocos[0].LastUpdated = request.LastUpdated.ToDateTime();


            _logic.Update(pocos);
            return(new Task <Empty>(null));
        }
Beispiel #14
0
 public ActionResult PutApplicantResume([FromBody] ApplicantResumePoco[] Resume)
 {
     try
     {
         _logic.Update(Resume);
         return(Ok());
     }
     catch (AggregateException e)
     {
         return(BadRequest(e));
     }
     catch
     {
         return(StatusCode(500));
     }
 }
 public IHttpActionResult PutApplicantResume([FromBody] ApplicantResumePoco[] 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);
     }
 }
Beispiel #16
0
        public async Task <IActionResult> EditSave(Guid id)
        {
            var poco = _logic.Get(id);

            if (poco is null)
            {
                return(NotFound());
            }
            poco.LastUpdated = DateTime.Now;
            if (ModelState.IsValid)
            {
                if (await TryUpdateModelAsync(poco, "",
                                              i => i.Resume,
                                              i => i.LastUpdated
                                              ))
                {
                    try
                    {
                        _logic.Update(new ApplicantResumePoco[] { poco });
                    }
                    catch (DbUpdateConcurrencyException)
                    {
                        if (!ApplicantResumePocoExists(poco.Id))
                        {
                            return(NotFound());
                        }
                        else
                        {
                            throw;
                        }
                    }
                }
                return(RedirectToAction(nameof(Details), "ApplicantProfile", new { Id = poco.Applicant }));
            }
            PopulateApplicantList(poco.Applicant);
            return(View(poco));
        }
Beispiel #17
0
 public void UpdateApplicantResume(ApplicantResumePoco[] pocos)
 {
     _ApplicantResumeLogic.Update(pocos);
 }
 public void UpdateApplicantResume(ApplicantResumePoco[] item)
 {
     _applicantResumeLogic.Update(item);
 }
Beispiel #19
0
        public void UpdateApplicantResume(ApplicantResumePoco[] pocos)
        {
            var logic = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false));

            logic.Update(pocos);
        }
Beispiel #20
0
 public void UpdateApplicantResume(ApplicantResumePoco[] items)
 {
     _rLogic.Update(items);
 }
Beispiel #21
0
 public IHttpActionResult PutApplicantResume([FromBody] ApplicantResumePoco[] ApplicantResumes)
 {
     _logic.Update(ApplicantResumes);
     return(Ok());
 }
Beispiel #22
0
 public void updateApplicantResumePoco(ApplicantResumePoco[] items)
 {
     _logicApplicantResume.Update(items);
 }
Beispiel #23
0
        public void UpdateApplicantResume(ApplicantResumePoco[] items)
        {
            var reference = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false));

            reference.Update(items);
        }