public override Task <Empty> DeleteApplicantResume(ApplicantResumePayload request, ServerCallContext context) { ApplicantResumePoco[] pocos = new ApplicantResumePoco[1]; pocos[0].Id = Guid.Parse(request.Id); pocos[0].Applicant = Guid.Parse(request.Applicant); pocos[0].Resume = request.Resume; pocos[0].LastUpdated = request.LastUpdated.ToDateTime(); _logic.Delete(pocos); return(new Task <Empty>(null)); }
public override Task <Empty> DeleteApplicantResume(ApplicantResumePayload request, ServerCallContext context) { ApplicantResumePoco[] pocos = new ApplicantResumePoco[1]; foreach (var poco in pocos) { poco.Id = Guid.Parse(request.Id); poco.Applicant = Guid.Parse(request.Applicant); poco.Resume = request.Resume; poco.LastUpdated = request.LastUpdated.ToDateTime(); } _logic.Delete(pocos); return(new Task <Empty>(() => new Empty())); }
public override Task <Empty> DeleteApplicantResume(ApplicantResumePayload request, ServerCallContext context) { ApplicantResumePoco[] poco = { new ApplicantResumePoco() { Id = Guid.Parse(request.Id), Applicant = Guid.Parse(request.Applicant), Resume = request.Resume, LastUpdated = DateTime.Parse(request.LastUpdated.ToString()) } }; _logic.Delete(poco); return(new Task <Empty>(() => new Empty())); }