public Organisation Get() { try { return(_organisationsServiceAgent.Get(_formsAuthenticationService.GetLoggedInOrganisationId())); } catch (ItemNotFoundException exception) { throw new OrganisationIdNotValidException(); } }
public IEnumerable <Application> GetByOrganisationId() { try { var organisationId = _formsAuthenticationService.GetLoggedInOrganisationId(); return(_applicationServiceAgent.GetByOrganisation(organisationId)); } catch (OrganisationIdNotValidException) { throw new Models.Exceptions.OrganisationIdNotValidException(); } }