Exemple #1
0
        public override Task <CompanyJobEducationPayload> ReadCompanyJobEducation(IdRequestEducation request, ServerCallContext context)
        {
            CompanyJobEducationPoco poco = new CompanyJobEducationPoco();

            return(new Task <CompanyJobEducationPayload>(() => new CompanyJobEducationPayload()
            {
                Id = poco.Id.ToString(),
                Job = poco.Job.ToString(),
                Major = poco.Major,
                Importance = poco.Importance
            }));
        }
Exemple #2
0
        public override Task <ApplicantEducationPayLoad> ReadApplicantEducation(IdRequestEducation request, ServerCallContext context)
        {
            ApplicantEducationPoco poco = _logic.Get(Guid.Parse(request.Id));

            return(new Task <ApplicantEducationPayLoad>(() => new ApplicantEducationPayLoad()
            {
                Id = poco.Id.ToString(),
                Applicant = poco.Applicant.ToString(),
                CertficateDiploma = poco.CertificateDiploma,
                CompletionDate = poco.CompletionDate is null ? null : Timestamp.FromDateTime((DateTime)poco.CompletionDate),
                CompletionPercentage = poco.CompletionPercent is null ? 0 : (int)poco.CompletionPercent,
                Major = poco.Major,
                StartDate = poco.StartDate is null ? null : Timestamp.FromDateTime((DateTime)poco.StartDate)
            }));