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); }
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); }