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); }
public void AddDeansOffice(AddDeansOfficeRequest request) { try { _loginQuery.IsAuthenticated(request.Ticket); _sessionGenerator.ProlongSession(request.Ticket); _commands.AddDeansOffice(request); } catch (SecurityException e) { throw new FaultException <SecurityException>(e); } catch (Exception e) { throw new FaultException(e.Message); } }