public override Task <Empty> DeleteApplicantWorkHistory(ApplicantWorkHistoryPayLoad request, ServerCallContext context) { ApplicantWorkHistoryPoco[] pocos = new ApplicantWorkHistoryPoco[] { new ApplicantWorkHistoryPoco() { Id = Guid.Parse(request.Id), Applicant = Guid.Parse(request.Applicant), CompanyName = request.CompanyName, CountryCode = request.CountryCode, Location = request.Location, JobTitle = request.JobTitle, JobDescription = request.JobDescription, StartMonth = (byte)request.StartMonth, StartYear = request.StartYear, EndMonth = (byte)request.EndMonth, EndYear = (byte)request.EndYear } }; _logic.Delete(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> UpdateApplicantWorkHistory(ApplicantWorkHistoryPayLoad request, ServerCallContext context) { ApplicantWorkHistoryPoco poco = new ApplicantWorkHistoryPoco() { Id = new Guid(request.Id), Applicant = new Guid(request.Applicant), CompanyName = request.CompanyName, CountryCode = request.CountryCode, Location = request.Location, JobTitle = request.JobTitle, JobDescription = request.JobDescription, StartMonth = (short)request.StartMonth, StartYear = request.StartYear, EndMonth = (short)request.EndMonth, EndYear = request.EndYear }; _logic.Update(new ApplicantWorkHistoryPoco[] { poco }); return(null); }