public override Task <CompanyJobDescriptionPayload> ReadCompanyJobDescription(CompanyJobDescriptionIdRequest request, ServerCallContext context) { var poco = _logic.Get(Guid.Parse(request.Id)); return(new Task <CompanyJobDescriptionPayload>(() => new CompanyJobDescriptionPayload() { Id = poco.Id.ToString(), Job = poco.Job.ToString(), JobName = poco.JobName, JobDescriptions = poco.JobDescriptions })); }
// GET: CompanyJobDescription/Details/5 public ActionResult Details(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CompanyJobDescriptionPoco companyJobDescriptionPoco = companyJobDescriptionLogic.Get(id.Value); //db.CompanyJobDescriptions.Find(id); if (companyJobDescriptionPoco == null) { return(HttpNotFound()); } return(View(companyJobDescriptionPoco)); }
public override Task <CompanyJobDescriptionPayload> ReadCompanyJobDescription(CompanyJobDescriptionIdRequest request, ServerCallContext context) { var poco = _logic.Get(Guid.Parse(request.Id)); _ = poco ?? throw new ArgumentException("No Company Job description Record with this Id Found "); return(new Task <CompanyJobDescriptionPayload>(() => new CompanyJobDescriptionPayload() { Id = poco.Id.ToString(), Job = poco.Job.ToString(), JobName = poco.JobName, JobDescription = poco.JobDescriptions })); }
// GET: CompanyJobDescription/Edit/5 public ActionResult Edit(Guid id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CompanyJobDescriptionPoco companyJobDescriptionPoco = _logic.Get(id); // db.CompanyJobDescription.Find(id); if (companyJobDescriptionPoco == null) { return(HttpNotFound()); } ViewBag.Job = new SelectList(db.CompanyJob, "Id", "Id", companyJobDescriptionPoco.Job); return(View(companyJobDescriptionPoco)); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { Guid id = new Guid(Id); var logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); return(logic.Get(id)); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { EFGenericRepository <CompanyJobDescriptionPoco> repo = new EFGenericRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(repo); return(logic.Get(Guid.Parse(Id))); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { ApplicantProfileRepository <CompanyJobDescriptionPoco> repo = new ApplicantProfileRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic log = new CompanyJobDescriptionLogic(repo); return(log.Get(Guid.Parse(Id))); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string id) { EFGenericRepository <CompanyJobDescriptionPoco> companyjobdescriptionrepo = new EFGenericRepository <CompanyJobDescriptionPoco>(false); CompanyJobDescriptionLogic _companyjobdescriptionlogic = new CompanyJobDescriptionLogic(companyjobdescriptionrepo); return(_companyjobdescriptionlogic.Get(Guid.Parse(id))); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { var logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); CompanyJobDescriptionPoco companyJobDescriptionPoco = new CompanyJobDescriptionPoco(); companyJobDescriptionPoco = logic.Get(Guid.Parse(Id)); return(companyJobDescriptionPoco); }
public IHttpActionResult GetCompanyJobsDescription(Guid companyjobdescriptionId) { CompanyJobDescriptionPoco cjd = _logic.Get(companyjobdescriptionId); if (cjd == null) { return(NotFound()); } return(Ok(cjd)); }
public ActionResult GetCompanyJobsDescription(Guid jobdescid) { CompanyJobDescriptionPoco poco = _logic.Get(jobdescid); if (poco is null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetCompanyJobsDescription(Guid id) { CompanyJobDescriptionPoco poco = logic.Get(id); if (poco == null) { return(NotFound()); } return(Ok(poco)); }
public IHttpActionResult GetCompanyJobsDescription(Guid companyJobDescriptionId) { CompanyJobDescriptionPoco appEdu = _logic.Get(companyJobDescriptionId); if (appEdu == null) { return(NotFound()); } return(Ok(appEdu)); }
public ActionResult GetCompanyJobsDescription(Guid id) { var poco = _logic.Get(id); if (poco != null) { return(Ok(poco)); } else { return(NotFound()); } }
public ActionResult GetCompanyJobsDescription(Guid companyjobdescriptionid) { CompanyJobDescriptionPoco poco = _logicref.Get(companyjobdescriptionid); if (poco != null) { return(Ok(poco)); } else { return(NotFound()); } }
public ActionResult GetCompanyJobsDescription(Guid companyJobDescriptionId) { CompanyJobDescriptionPoco companyJobDescription = _logic.Get(companyJobDescriptionId); if (companyJobDescription == null) { return(NotFound()); } else { return(Ok(companyJobDescription)); } }
public ActionResult GetCompanyJobsDescription(Guid Id) { CompanyJobDescriptionPoco poco = _logic.Get(Id); if (poco == null) { return(NotFound()); } else { return(Ok(poco)); } }
public IHttpActionResult GetCompanyJobDescription(Guid CompanyJobDescriptionId) { try { CompanyJobDescriptionPoco poco = _logic.Get(CompanyJobDescriptionId); if (poco == null) { return(NotFound()); } return(Ok(poco)); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <CompJobDescProto> GetCompanyJobDescription(CompJobDescIdRequest request, ServerCallContext context) { CompanyJobDescriptionPoco poco = _logic.Get(Guid.Parse(request.Id)); if (poco is null) { throw new ArgumentOutOfRangeException("Id in input not found"); } return(new Task <CompJobDescProto>( () => new CompJobDescProto { Id = poco.Id.ToString(), Job = poco.Job.ToString(), JobName = poco.JobName, JobDescriptions = poco.JobDescriptions })); }
public override Task <CompanyJobDescriptionPayLoad> ReadCompanyJobDescription(IdRequestCompJobDesc request, ServerCallContext context) { CompanyJobDescriptionPoco poco = _logic.Get(Guid.Parse(request.Id)); if (poco is null) { throw new ArgumentOutOfRangeException("poco is null"); } return(new Task <CompanyJobDescriptionPayLoad>( () => new CompanyJobDescriptionPayLoad() { Id = poco.Id.ToString(), Job = poco.Job.ToString(), JobName = poco.JobName, JobDescriptions = poco.JobDescriptions } )); }
public IHttpActionResult GetCompanyJobsDescription(Guid CompanyJobDescriptionId) { try { CompanyJobDescriptionPoco item = _logicObj.Get(CompanyJobDescriptionId); 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 CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string id) { var _logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); return(_logic.Get(Guid.Parse(id))); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(Guid Id) { CompanyJobDescriptionLogic logic = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); return(logic.Get(Id)); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescriptionPoco(Guid Id) { return(_logicAJL.Get(Id)); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { return(_cjdLogic.Get(Guid.Parse(Id))); }
public CompanyJobDescriptionPoco GetSingleCompanyJobDescription(string Id) { var reference = new CompanyJobDescriptionLogic(new EFGenericRepository <CompanyJobDescriptionPoco>(false)); return(reference.Get(Guid.Parse(Id))); }