Exemplo n.º 1
0
        public override Task <Empty> DeleteApplicantSkill(ApplicantSkillPayLoad request, ServerCallContext context)
        {
            ApplicantSkillPoco[] pocos = new ApplicantSkillPoco[] { new ApplicantSkillPoco()
                                                                    {
                                                                        Id         = Guid.Parse(request.Id),
                                                                        Applicant  = Guid.Parse(request.Applicant),
                                                                        Skill      = request.Skill,
                                                                        SkillLevel = request.SkillLevel,
                                                                        StartMonth = (byte)request.StartMonth,
                                                                        StartYear  = request.StartYear,
                                                                        EndMonth   = (byte)request.EndMonth,
                                                                        EndYear    = (byte)request.EndYear
                                                                    } };
            _logic.Delete(pocos);

            return(new Task <Empty>(() => new Empty()));
        }
Exemplo n.º 2
0
        public override Task <Empty> UpdateApplicantSkill(ApplicantSkillPayLoad request, ServerCallContext context)
        {
            ApplicantSkillPoco poco = new ApplicantSkillPoco()
            {
                Id         = new Guid(request.Id),
                Applicant  = new Guid(request.Applicant),
                Skill      = request.Skill,
                SkillLevel = request.SkillLevel,
                StartMonth = (byte)request.StartMonth,
                StartYear  = request.StartYear,
                EndMonth   = (byte)request.EndMonth,
                EndYear    = request.EndYear
            };

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

            return(null);
        }