public void UpdateApplicantSkill(ApplicantSkillPoco[] pocos) { ApplicantProfileRepository <ApplicantSkillPoco> repo = new ApplicantProfileRepository <ApplicantSkillPoco>(false); ApplicantSkillLogic log = new ApplicantSkillLogic(repo); log.Update(pocos); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] items) { var logic = new ApplicantSkillLogic (new EFGenericRepository <ApplicantSkillPoco>()); logic.Update(items); }
public ActionResult PutApplicantSkill( [FromBody] ApplicantSkillPoco[] pocos) { _logic.Update(pocos); return(Ok()); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] items) { EFGenericRepository <ApplicantSkillPoco> applicantskillrepo = new EFGenericRepository <ApplicantSkillPoco>(false); ApplicantSkillLogic _applicantskilllogic = new ApplicantSkillLogic(applicantskillrepo); _applicantskilllogic.Update(items); }
public override Task <Empty> UpdateApplicantSkill(AppSkillArray request, ServerCallContext context) { var pocos = ProtoToPoco(request); _logic.Update(pocos.ToArray()); return(new Task <Empty>(() => new Empty())); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] pocos) { EFGenericRepository <ApplicantSkillPoco> repo = new EFGenericRepository <ApplicantSkillPoco>(false); ApplicantSkillLogic logic = new ApplicantSkillLogic(repo); logic.Update(pocos); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] items) { EFGenericRepository <ApplicantSkillPoco> ApplicantSkillRepo = new EFGenericRepository <ApplicantSkillPoco>(false); var Logic = new ApplicantSkillLogic(ApplicantSkillRepo); Logic.Update(items); }
public IHttpActionResult PutApplicantSkill(ApplicantSkillPoco[] applicantSkill) { if (applicantSkill == null) { return(NotFound()); } _logic.Update(applicantSkill); return(Ok()); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Skill,SkillLevel,StartMonth,StartYear, EndMonth, EndYear, TimeStamp")] ApplicantSkillPoco applicantSkill) { Guid _userProfileId = (Guid)TempData["Applicant"]; TempData.Keep(); applicantSkill.TimeStamp = (byte[])TempData["TimeStamp"]; applicantSkill.Applicant = _userProfileId; _logic.Update(new ApplicantSkillPoco[] { applicantSkill }); return(RedirectToAction("Index")); }
public IHttpActionResult PutApplicantSkill([FromBody] ApplicantSkillPoco[] pocos) { try { _logic.Update(pocos); return(Ok()); } catch (Exception e) { return(InternalServerError(e)); } }
public ActionResult Edit([Bind(Include = "Id,SkillLevel,StartMonth,StartYear,EndMonth,EndYear,TimeStamp,Applicant,Skill")] ApplicantSkillPoco applicantSkillPoco) { if (ModelState.IsValid) { //db.Entry(applicantSkillPoco).State = EntityState.Modified; //db.SaveChanges(); _logic.Update(new ApplicantSkillPoco[] { applicantSkillPoco }); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(db.ApplicantProfile, "Id", "Country", applicantSkillPoco.Applicant); return(View(applicantSkillPoco)); }
public ActionResult Edit([Bind(Include = "Id,Applicant,Skill,SkillLevel,StartMonth,StartYear,EndMonth,EndYear,TimeStamp")] ApplicantSkillPoco applicantSkillPoco) { if (ModelState.IsValid) { appSkillPoco[0] = applicantSkillPoco; applicantSkillLogic.Update(appSkillPoco); return(RedirectToAction("Index")); } ViewBag.Applicant = new SelectList(applicantSkillLogic.GetAll(), "Applicant", "Applicant"); return(View(applicantSkillPoco)); }
public override Task <Empty> UpdateApplicantSkill(ApplicantSkillPayload request, ServerCallContext context) { ApplicantSkillPoco[] pocos = { new ApplicantSkillPoco() { Id = Guid.Parse(request.Id), Applicant = Guid.Parse(request.Applicant), Skill = request.Skill, SkillLevel = request.SkillLevel, StartMonth = (byte)request.StartMonth, EndMonth = (byte)request.EndMonth, StartYear = request.StartYear, EndYear = request.EndYear } }; _logic.Update(pocos); return(new Task <Empty>(() => new Empty())); }
public ActionResult PutApplicantSkill([FromBody] ApplicantSkillPoco[] skill) { try { _logic.Update(skill); return(Ok()); } catch (AggregateException e) { return(BadRequest(e)); } catch { return(StatusCode(500)); } }
public override Task <Empty> UpdateApplicantSkill(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.Update(pocos); return(new Task <Empty>(null)); }
public override Task <Empty> UpdateApplicantSkill(ApplicantSkillPayload request, ServerCallContext context) { ApplicantSkillPoco[] app_poco = new ApplicantSkillPoco[1]; foreach (var poco in app_poco) { 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.Update(app_poco); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> UpdateApplicantSkill(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.Update(new ApplicantSkillPoco[] { poco }); return(null); }
public override Task <Empty> UpdateApplicantSkill(ApplicantSkillPayload request, ServerCallContext context) { _ = _logic.Get(Guid.Parse(request.Id)) ?? throw new ArgumentNullException("No Applicant Skill Record with this Id Found "); var poco = new ApplicantSkillPoco() { Id = Guid.Parse(request.Id), Applicant = Guid.Parse(request.Applicant), Skill = request.Skill, SkillLevel = request.SkillLevel, StartMonth = (byte)request.StartMonth, EndMonth = Convert.ToByte(request.EndMonth), StartYear = request.StartYear, EndYear = request.EndYear }; _logic.Update(new ApplicantSkillPoco[] { poco }); return(null); }
public IHttpActionResult PutApplicantSkill([FromBody] ApplicantSkillPoco[] 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 (ModelState.IsValid) { if (await TryUpdateModelAsync(poco, "", i => i.Skill, i => i.SkillLevel, i => i.StartMonth, i => i.StartYear, i => i.EndMonth, i => i.EndYear)) { try { _logic.Update(new ApplicantSkillPoco[] { poco }); } catch (DbUpdateConcurrencyException) { if (!ApplicantSkillPocoExists(poco.Id)) { return(NotFound()); } else { throw; } } } return(RedirectToAction(nameof(Details), "ApplicantProfile", new { Id = poco.Applicant })); } PopulateApplicantList(poco.Applicant); return(View(poco)); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] item) { _applicantSkillLogic.Update(item); }
public override Task <Empty> UpdateApplicantSkill(ApplicantSkillPayload request, ServerCallContext context) { _logic.Update(GetArray(request)); return(new Task <Empty>(null)); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] pocos) { var logic = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false)); logic.Update(pocos); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] items) { _sLogic.Update(items); }
public void updateApplicantSkillPoco(ApplicantSkillPoco[] items) { _logicApplicantSkillLogic.Update(items); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] pocos) { _ApplicantSkillLogic.Update(pocos); }
public IHttpActionResult PutApplicantSkill([FromBody] ApplicantSkillPoco[] ApplicantSkills) { _logic.Update(ApplicantSkills); return(Ok()); }
public void UpdateApplicantSkill(ApplicantSkillPoco[] items) { var reference = new ApplicantSkillLogic(new EFGenericRepository <ApplicantSkillPoco>(false)); reference.Update(items); }