public override Task <ApplicantJobApplicationPayLoad> ReadApplicantJobApplication(IdRequestJobApplication request, ServerCallContext context) { ApplicantJobApplicationPoco poco = _logic.Get(Guid.Parse(request.Id)); return(new Task <ApplicantJobApplicationPayLoad>(() => new ApplicantJobApplicationPayLoad() { Id = poco.Id.ToString(), Applicant = poco.Applicant.ToString(), Job = poco.Job.ToString(), ApplicationDate = Timestamp.FromDateTime((DateTime)poco.ApplicationDate), })); }
public override Task <ApplicantJobApplicationPayload> ReadApplicantJobApplication(IdRequestJobApplication request, ServerCallContext context) { ApplicantJobApplicationPoco poco = _logic.Get(Guid.Parse(request.Id)); return(new Task <ApplicantJobApplicationPayload>(() => new ApplicantJobApplicationPayload() { Id = poco.Id.ToString(), Applicant = poco.Applicant.ToString(), Job = poco.Job.ToString(), ApplicationDate = poco.ApplicationDate == null ? null : Timestamp.FromDateTime((DateTime)poco.ApplicationDate) //CertificateDiploma = poco.CertificateDiploma, //CompletionDate = poco.CompletionDate is null ? null : Timestamp.FromDateTime((DateTime)poco.CompletionDate), //StartDate = poco.StartDate is null ? null : Timestamp.FromDateTime((DateTime)poco.StartDate), //CompletionPercent = poco.CompletionPercent is null ? 0 : (int)poco.CompletionPercent, //Major = poco.Major, })); }