public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] items) { var logic = new CompanyJobDescriptionLogic (new EFGenericRepository <CompanyJobDescriptionPoco>()); logic.Update(items); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] items) { EFGenericRepository <CompanyJobDescriptionPoco> CompanyJobDescriptionRepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false); var Logic = new CompanyJobDescriptionLogic(CompanyJobDescriptionRepo); Logic.Update(items); }
public override Task <Empty> UpdateCompanyJobDescription(CompJobDescArray request, ServerCallContext context) { var pocos = ProtoToPoco(request); _logic.Update(pocos.ToArray()); return(new Task <Empty>(() => new Empty())); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] pocos) { EFGenericRepository <CompanyJobDescriptionPoco> repo = new EFGenericRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(repo); logic.Update(pocos); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] pocos) { ApplicantProfileRepository <CompanyJobDescriptionPoco> repo = new ApplicantProfileRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic log = new CompanyJobDescriptionLogic(repo); log.Update(pocos); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] items) { EFGenericRepository <CompanyJobDescriptionPoco> companyjobdescriptionrepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic _companyjobdescriptionlogic = new CompanyJobDescriptionLogic(companyjobdescriptionrepo); _companyjobdescriptionlogic.Update(items); }
public ActionResult PutCompanyJobsDescription( [FromBody] CompanyJobDescriptionPoco[] pocos) { _logic.Update(pocos); return(Ok()); }
public IHttpActionResult PutCompanyJobsDescription(CompanyJobDescriptionPoco[] companyJobDescription) { if (companyJobDescription == null) { return(NotFound()); } _logic.Update(companyJobDescription); return(Ok()); }
public ActionResult Edit([Bind(Include = "Id,Job,JobName,JobDescriptions,TimeStamp")] CompanyJobDescriptionPoco companyJobDescriptionPoco) { if (ModelState.IsValid) { compJobDescriptionPoco[0] = companyJobDescriptionPoco; companyJobDescriptionLogic.Update(compJobDescriptionPoco); return(RedirectToAction("Index")); } ViewBag.Job = new SelectList(companyJobDescriptionLogic.GetAll(), "Job", "Job"); return(View(companyJobDescriptionPoco)); }
public override Task <Empty> UpdateCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context) { CompanyJobDescriptionPoco[] pocos = { new CompanyJobDescriptionPoco() { Id = Guid.Parse(request.Id), Job = Guid.Parse(request.Job), JobName = request.JobName, JobDescriptions = request.JobDescriptions, } }; _logic.Update(pocos); return(new Task <Empty>(() => new Empty())); }
public ActionResult Edit([Bind(Include = "Id,JobName,JobDescriptions,TimeStamp,Job")] CompanyJobDescriptionPoco companyJobDescriptionPoco) { if (ModelState.IsValid) { //db.Entry(companyJobDescriptionPoco).State = EntityState.Modified; //db.SaveChanges(); _logic.Update(new CompanyJobDescriptionPoco[] { companyJobDescriptionPoco }); return(RedirectToAction("Index")); } ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobDescriptionPoco.Job); return(View(companyJobDescriptionPoco)); }
public IHttpActionResult PutCompanyJobDescription([FromBody] CompanyJobDescriptionPoco[] pocos) { try { _logic.Update(pocos); return(Ok(pocos)); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <Empty> UpdateCompanyJobDescription(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.Update(pocos); return(new Task <Empty>(null)); }
public override Task <Empty> UpdateCompanyJobDescription(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.Update(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> UpdateCompanyJobDescription(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.Update(new CompanyJobDescriptionPoco[] { poco }); return(null); }
public override Task <Empty> UpdateCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context) { _ = _logic.Get(Guid.Parse(request.Id)) ?? throw new ArgumentNullException("No Company Job Description Record with this Id Found "); var poco = new CompanyJobDescriptionPoco() { Id = Guid.Parse(request.Id), Job = Guid.Parse(request.Job), JobName = request.JobName, JobDescriptions = request.JobDescription, }; _logic.Update(new CompanyJobDescriptionPoco[] { poco }); return(null); }
public ActionResult PutCompanyJobsDescription([FromBody] CompanyJobDescriptionPoco[] jobDescription) { try { _logic.Update(jobDescription); return(Ok()); } catch (AggregateException e) { return(BadRequest(e)); } catch { return(StatusCode(500)); } }
public IHttpActionResult PutCompanyJobsDescription([FromBody] CompanyJobDescriptionPoco[] 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 void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] pocos) { _CompanyJobDescriptionLogic.Update(pocos); }
public void updateCompanyJobDescriptionPoco(CompanyJobDescriptionPoco[] items) { _logicAJL.Update(items); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] items) { _cjdLogic.Update(items); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] items) { var reference = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); reference.Update(items); }
public override Task <Empty> UpdateCompanyJobDescription(CompanyJobDescriptionPayload request, ServerCallContext context) { _logic.Update(GetArray(request)); return(new Task <Empty>(null)); }
public void UpdateCompanyJobDescription(CompanyJobDescriptionPoco[] item) { _companyJobDescription.Update(item); }