コード例 #1
0
        public override Task <Empty> DeleteApplicantJobApplication(ApplicantJobApplicationPayLoad request, ServerCallContext context)
        {
            ApplicantJobApplicationPoco[] pocos = new ApplicantJobApplicationPoco[] { new ApplicantJobApplicationPoco()
                                                                                      {
                                                                                          Id              = Guid.Parse(request.Id),
                                                                                          Applicant       = Guid.Parse(request.Applicant),
                                                                                          Job             = Guid.Parse(request.Job),
                                                                                          ApplicationDate = request.ApplicationDate.ToDateTime()
                                                                                      } };
            _logic.Delete(pocos);

            return(new Task <Empty>(() => new Empty()));
        }
        public override Task <Empty> UpdateApplicantJobApplication(ApplicantJobApplicationPayLoad request, ServerCallContext context)
        {
            ApplicantJobApplicationPoco poco = new ApplicantJobApplicationPoco()
            {
                Id              = new Guid(request.Id),
                Applicant       = new Guid(request.Applicant),
                Job             = new Guid(request.Job),
                ApplicationDate = request.ApplicationDate.ToDateTime()
            };

            _logic.Update(new ApplicantJobApplicationPoco[] { poco });

            return(null);
        }