public IList <DeansOfficeInfo> GetAllDeansOffices(Guid ticket)
        {
            IList <DeansOfficeInfo> deansOfficeInfo;

            try
            {
                _loginQuery.IsAuthenticated(ticket);
                _sessionGenerator.ProlongSession(ticket);

                deansOfficeInfo = _deansOfficeQuery.GetAllDeansOffices();
            }
            catch (SecurityException e)
            {
                throw new FaultException <SecurityException>(e);
            }
            catch (Exception e)
            {
                throw new FaultException(e.Message);
            }

            return(deansOfficeInfo);
        }
示例#2
0
        public IList <DeansOfficeInfo> GetDeansOffices()
        {
            IList <DeansOfficeInfo> deansOffices = _deansOfficeQuery.GetAllDeansOffices();

            return(deansOffices);
        }