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); }
public void UpdateApplicantResume(ApplicantResumePoco[] items) { EFGenericRepository <ApplicantResumePoco> ApplicantResumeRepo = new EFGenericRepository <ApplicantResumePoco>(false); var Logic = new ApplicantResumeLogic(ApplicantResumeRepo); Logic.Update(items); }
public void UpdateApplicantResume(ApplicantResumePoco[] pocos) { ApplicantProfileRepository <ApplicantResumePoco> repo = new ApplicantProfileRepository <ApplicantResumePoco>(false); ApplicantResumeLogic log = new ApplicantResumeLogic(repo); log.Update(pocos); }
public void UpdateApplicantResume(ApplicantResumePoco[] items) { var logic = new ApplicantResumeLogic (new EFGenericRepository <ApplicantResumePoco>()); logic.Update(items); }
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)); }
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)); }
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); } }
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)); }
public void UpdateApplicantResume(ApplicantResumePoco[] pocos) { _ApplicantResumeLogic.Update(pocos); }
public void UpdateApplicantResume(ApplicantResumePoco[] item) { _applicantResumeLogic.Update(item); }
public void UpdateApplicantResume(ApplicantResumePoco[] pocos) { var logic = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false)); logic.Update(pocos); }
public void UpdateApplicantResume(ApplicantResumePoco[] items) { _rLogic.Update(items); }
public IHttpActionResult PutApplicantResume([FromBody] ApplicantResumePoco[] ApplicantResumes) { _logic.Update(ApplicantResumes); return(Ok()); }
public void updateApplicantResumePoco(ApplicantResumePoco[] items) { _logicApplicantResume.Update(items); }
public void UpdateApplicantResume(ApplicantResumePoco[] items) { var reference = new ApplicantResumeLogic(new EFGenericRepository <ApplicantResumePoco>(false)); reference.Update(items); }