public ActionResult GetApplicantWorkHistory(Guid applicantworkhistoryid) { ApplicantWorkHistoryPoco poco = _logicref.Get(applicantworkhistoryid); if (poco != null) { return(Ok(poco)); } else { return(NotFound()); } }
public ActionResult GetApplicantWorkHistory(Guid id) { ApplicantWorkHistoryPoco poco = _logic.Get(id); if (poco == null) { return(NotFound()); } else { return(Ok(poco)); } }
public IHttpActionResult GetApplicantWorkHistory(Guid ApplicantWorkHistoryId) { try { ApplicantWorkHistoryPoco poco = _logic.Get(ApplicantWorkHistoryId); if (poco == null) { return(NotFound()); } return(Ok(poco)); } catch (Exception e) { return(InternalServerError(e)); } }
public override Task <ApplicantWorkHistoryPayload> ReadApplicantWorkHistory(IdRequest6 request, ServerCallContext context) { var poco = _logic.Get(Guid.Parse(request.Id)); return(new Task <ApplicantWorkHistoryPayload>(() => new ApplicantWorkHistoryPayload() { Id = poco.Id.ToString(), Applicant = poco.Applicant.ToString(), CompanyName = poco.CompanyName, CountryCode = poco.CountryCode, Location = poco.Location, JobTitle = poco.JobTitle, JobDescription = poco.JobDescription, StartMonth = poco.StartMonth, StartYear = poco.StartYear, EndMonth = poco.EndMonth, EndYear = poco.EndYear })); }
public IHttpActionResult GetApplicantWorkHistory(Guid ApplicantWorkHistoryId) { try { ApplicantWorkHistoryPoco item = _logicObj.Get(ApplicantWorkHistoryId); 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 override Task <AppWorkProto> GetApplicantWorkHistory(AppWorkHistIdRequest request, ServerCallContext context) { ApplicantWorkHistoryPoco poco = _logic.Get(Guid.Parse(request.Id)); if (poco is null) { throw new ArgumentOutOfRangeException("Id in input not found"); } return(new Task <AppWorkProto>( () => new AppWorkProto { Id = poco.Id.ToString(), Applicant = poco.Applicant.ToString(), CompanyName = poco.CompanyName, CountryCode = poco.CountryCode, Location = poco.Location, JobTitle = poco.JobTitle, JobDescription = poco.JobDescription, StartMonth = Convert.ToInt32(poco.StartMonth), StartYear = poco.StartYear, EndMonth = Convert.ToInt32(poco.EndMonth), EndYear = poco.EndYear })); }
public ApplicantWorkHistoryPoco GetSingleApplicantWorkHistory(string Id) { ApplicantWorkHistoryLogic logic = new ApplicantWorkHistoryLogic(new EFGenericRepository <ApplicantWorkHistoryPoco>(false)); return(logic.Get(Guid.Parse(Id))); }
public ApplicantWorkHistoryPoco GetSingleApplicantWorkHistory(string Id) { return(_wLogic.Get(Guid.Parse(Id))); }
public ApplicantWorkHistoryPoco GetSingleApplicantWorkHistoryPoco(Guid Id) { return(_logicApplicantWorkHistoryLogic.Get(Id)); }
public ApplicantWorkHistoryPoco GetSingleApplicantWorkHistory(string Id) { var reference = new ApplicantWorkHistoryLogic(new EFGenericRepository <ApplicantWorkHistoryPoco>(false)); return(reference.Get(Guid.Parse(Id))); }