public DeansOfficeInfo GetDeansOfficeInfo(string deansOfficeId) { int id = int.Parse(deansOfficeId.Trim()); DeansOfficeInfo deansOfficeInfo = _deansOfficeQuery.GetDeansOfficeById(id); return(deansOfficeInfo); }
public DeansOfficeInfo GetDeansOfficeInfo(int id, Guid ticket) { DeansOfficeInfo deansOfficeInfo; try { _loginQuery.IsAuthenticated(ticket); _sessionGenerator.ProlongSession(ticket); deansOfficeInfo = _deansOfficeQuery.GetDeansOfficeById(id); } catch (SecurityException e) { throw new FaultException(e.Message); } catch (Exception e) { throw new FaultException(e.Message); } return(deansOfficeInfo); }