コード例 #1
0
        public string GetTestsInterviwee(DTO.Interviwee DtoInterviwee)
        {
            DAO.Interviwee _Interviwee = m_InterviweeManagement.GetInterviwee(DtoInterviwee.Id);

            DAO.Test[] _DaoTests = m_InterviweeManagement.GetCompleteTests(_Interviwee);
            DTO.Test[] _DtoTests = Utils.ConverObjectByJson <DTO.Test[]>(_DaoTests);

            string _Json = Utils.JsonSerialize(_DtoTests);

            return(_Json);
        }
コード例 #2
0
        public string Auth(DTO.Interviwee DtoInterviwee)
        {
            DAO.Interviwee _DaoInterviwee = m_InterviweeManagement.GetInterviwee(DtoInterviwee.LastName, DtoInterviwee.FirstName, DtoInterviwee.SecondName);

            if (_DaoInterviwee == null)
            {
                _DaoInterviwee = Utils.ConverObjectByJson <DAO.Interviwee>(DtoInterviwee);
                m_InterviweeManagement.CreateInterviwee(_DaoInterviwee);

                _DaoInterviwee = m_InterviweeManagement.GetInterviwee(DtoInterviwee.LastName, DtoInterviwee.FirstName, DtoInterviwee.SecondName);
            }

            DTO.Interviwee _DtoInterviwee = Utils.ConverObjectByJson <DTO.Interviwee>(_DaoInterviwee);
            string         _Json          = Utils.JsonSerialize(_DtoInterviwee);

            return(_Json);
        }