Пример #1
0
    public Boolean insertRecruitee(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.insertRecruitee(obj);
    }
Пример #2
0
    public Boolean insertRecruitee(RecruiteeDto dto)
    {
        if (dto.AgeId.Equals(""))
        {
            dto.AgeId = null;
        }

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

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

        if (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.insertRecruitee(obj);
    }