private CompanyJobEducationPoco ToPoco(CompanyJobEducationReply reply) { return(new CompanyJobEducationPoco() { Id = Guid.Parse(reply.Id), Job = Guid.Parse(reply.Job), Importance = (short)reply.Importance, Major = reply.Major }); }
private CompanyJobEducationPoco ToPoco(CompanyJobEducationReply reply) { return(new CompanyJobEducationPoco() { Id = Guid.Parse(reply.Id), Job = Guid.Parse(reply.Job), Major = reply.Major, Importance = (Int16)reply.Importance, TimeStamp = reply.TimeStamp.ToByteArray() }); }
public override Task <CompanyJobEducations> GetCompanyJobEducations(Empty request, ServerCallContext context) { List <CompanyJobEducationPoco> pocos = _logic.GetAll(); CompanyJobEducations comJobs = new CompanyJobEducations(); foreach (var poco in pocos) { CompanyJobEducationReply reply = FromPoco(poco); comJobs.ComJob.Add(reply); } return(Task.FromResult(comJobs)); }