Example #1
0
    public Boolean updateRecruitee(Guid RecruiteeId, String RankingId, double RankingValue, String Email,
                   String FirstName, String LastName, String Gender, String AgeId, String EducationId, String IncomeId)
    {
        if (AgeId.Equals(""))
        {
            AgeId = null;
        }

        if (EducationId.Equals(""))
        {
            EducationId = null;
        }

        if (IncomeId.Equals(""))
        {
            IncomeId = null;
        }

        if (RankingId.Equals(""))
        {
            RankingId = null;
        }
        Recruitee obj = Recruitee.createRecruitee(RecruiteeId, RankingId, (decimal)RankingValue, Email,
                           FirstName, LastName, Gender, AgeId, EducationId, IncomeId);
        RecruiteeManager mgr = new RecruiteeManager();
        return mgr.updateRecruitee(obj);
    }
Example #2
0
    public Boolean updateRecruitee(RecruiteeDto dto)
    {
        if (dto.AgeId != null && dto.AgeId.Equals(""))
        {
            dto.AgeId = null;
        }

        if (dto.EducationId != null && dto.EducationId.Equals(""))
        {
            dto.EducationId = null;
        }

        if (dto.IncomeId != null && dto.IncomeId.Equals(""))
        {
            dto.IncomeId = null;
        }

        if (dto.RankingId != null && dto.RankingId.Equals(""))
        {
            dto.RankingId = null;
        }
        Recruitee obj = Recruitee.createRecruitee(dto.RecruiteeId, dto.RankingId, (decimal)dto.RankingValue, dto.Email,
                           dto.FirstName, dto.LastName, dto.Gender, dto.AgeId, dto.EducationId, dto.IncomeId);
        RecruiteeManager mgr = new RecruiteeManager();
        return mgr.updateRecruitee(obj);
    }