public override Task <CompanyJobSkillPayload> ReadCompanyJobSkill(CompanyJobSkillIdRequest request, ServerCallContext context) { var poco = _logic.Get(Guid.Parse(request.Id)); return(new Task <CompanyJobSkillPayload>(() => new CompanyJobSkillPayload() { Id = poco.Id.ToString(), Importance = poco.Importance, Job = poco.Job.ToString(), Skill = poco.Skill, SkillLevel = poco.SkillLevel })); }
// GET: CompanyJobSkill/Details/5 public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CompanyJobSkillPoco companyJobSkillPoco = companyJobSkillLogic.Get(id.Value);// db.CompanyJobSkills.Find(id); if (companyJobSkillPoco == null) { return(HttpNotFound()); } return(View(companyJobSkillPoco)); }
// GET: CompanyJobSkill/Edit/5 public ActionResult Edit(Guid id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CompanyJobSkillPoco companyJobSkillPoco = _logic.Get(id); // db.CompanyJobSkill.Find(id); if (companyJobSkillPoco == null) { return(HttpNotFound()); } ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobSkillPoco.Job); return(View(companyJobSkillPoco)); }
public override Task <CompanyJobSkillsPayload> ReadCompanyJobSkill(CompanyJobSkillsIdRequest request, ServerCallContext context) { var poco = _logic.Get(Guid.Parse(request.Id)); _ = poco ?? throw new ArgumentException("No Company Job Skill Record with this Id Found "); return(new Task <CompanyJobSkillsPayload>(() => new CompanyJobSkillsPayload() { Id = poco.Id.ToString(), Importance = poco.Importance, Job = poco.Job.ToString(), Skill = poco.Skill, SkillLevel = poco.SkillLevel })); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { ApplicantProfileRepository <CompanyJobSkillPoco> repo = new ApplicantProfileRepository <CompanyJobSkillPoco>(false); CompanyJobSkillLogic log = new CompanyJobSkillLogic(repo); return(log.Get(Guid.Parse(Id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { Guid id = new Guid(Id); var logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false)); return(logic.Get(id)); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id) { EFGenericRepository <CompanyJobSkillPoco> companyjobskillrepo = new EFGenericRepository <CompanyJobSkillPoco>(false); CompanyJobSkillLogic _companyjobskilllogic = new CompanyJobSkillLogic(companyjobskillrepo); return(_companyjobskilllogic.Get(Guid.Parse(id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { EFGenericRepository <CompanyJobSkillPoco> repo = new EFGenericRepository <CompanyJobSkillPoco>(false); CompanyJobSkillLogic logic = new CompanyJobSkillLogic(repo); return(logic.Get(Guid.Parse(Id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { var logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false)); CompanyJobSkillPoco companyJobSkillPoco = new CompanyJobSkillPoco(); companyJobSkillPoco = logic.Get(Guid.Parse(Id)); return(companyJobSkillPoco); }
public IHttpActionResult GetCompanyJobSkill(Guid companyJobSkillId) { CompanyJobSkillPoco poco = _logic.Get(companyJobSkillId); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetCompanyJobSkill(Guid companyjobskillId) { CompanyJobSkillPoco cjs = _logic.Get(companyjobskillId); if (cjs == null) { return(NotFound()); } return(Ok(cjs)); }
public ActionResult GetCompanyJobSkill(Guid jobskillid) { CompanyJobSkillPoco poco = _logic.Get(jobskillid); if (poco is null) { return(NotFound()); } return(Ok(poco)); }
public ActionResult GetCompanyJobSkill(Guid Id) { var poco = _logic.Get(Id); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public ActionResult GetCompanyJobSkill(Guid companyJobSkillId) { CompanyJobSkillPoco companyJobSkillPoco = _logic.Get(companyJobSkillId); if (companyJobSkillPoco == null) { return(NotFound()); } else { return(Ok(companyJobSkillPoco)); } }
public ActionResult GetCompanyJobSkill(Guid Id) { CompanyJobSkillPoco poco = _logic.Get(Id); if (poco != null) { return(Ok(poco)); } else { return(NotFound()); } }
public IHttpActionResult GetCompanyJobSkill(Guid CompanyJobSkillId) { try { CompanyJobSkillPoco poco = _logic.Get(CompanyJobSkillId); if (poco == null) { return(NotFound()); } return(Ok(poco)); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <ComJobSkillProto> GetCompanyJobSkill(ComJobSkillIdRequest request, ServerCallContext context) { CompanyJobSkillPoco poco = _logic.Get(Guid.Parse(request.Id)); if (poco is null) { throw new ArgumentOutOfRangeException("Id does not exist"); } return(new Task <ComJobSkillProto>( () => new ComJobSkillProto { Id = poco.Id.ToString(), Job = poco.Job.ToString(), Skill = poco.Skill, SkillLevel = poco.SkillLevel, Importance = poco.Importance })); }
public override Task <CompanyJobSkillPayLoad> ReadCompanyJobSkill(IdRequestCompJobSkill request, ServerCallContext context) { CompanyJobSkillPoco poco = _logic.Get(Guid.Parse(request.Id)); if (poco is null) { throw new ArgumentOutOfRangeException("poco is null"); } return(new Task <CompanyJobSkillPayLoad>( () => new CompanyJobSkillPayLoad() { Id = poco.Id.ToString(), Job = poco.Job.ToString(), Skill = poco.Skill, SkillLevel = poco.SkillLevel, Importance = poco.Importance } )); }
public IHttpActionResult GetCompanyJobSkill(Guid CompanyJobSkillId) { try { CompanyJobSkillPoco item = _logicObj.Get(CompanyJobSkillId); if (item != null) { return(this.Ok(item)); } else { return(this.NotFound()); } } catch (Exception e) { HttpResponseMessage response = this.Request.CreateErrorResponse(HttpStatusCode.BadRequest, e); throw new HttpResponseException(response); } }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id) { var _logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false)); return(_logic.Get(Guid.Parse(id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(Guid Id) { CompanyJobSkillLogic logic = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false)); return(logic.Get(Id)); }
public CompanyJobSkillPoco GetSingleCompanyJobSkillPoco(Guid Id) { return(_logicJobSkill.Get(Id)); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { return(_cjsLogic.Get(Guid.Parse(Id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string id) { return(_CompanyJobSkillLogic.Get(Guid.Parse(id))); }
public CompanyJobSkillPoco GetSingleCompanyJobSkill(string Id) { var reference = new CompanyJobSkillLogic(new EFGenericRepository <CompanyJobSkillPoco>(false)); return(reference.Get(Guid.Parse(Id))); }