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
            }));
        }
Exemplo n.º 2
0
        public override Task <SecurityLoginReply> GetSecurityLogin(IdRequest6 request, ServerCallContext context)
        {
            SecurityLoginPoco poco = _logic.Get(Guid.Parse(request.Id));

            return(Task.FromResult <SecurityLoginReply>(FromPoco(poco)));
        }