public DTO.SearchFilterData GetSearchFilter(out Library.DTO.Notification notification) { notification = new Library.DTO.Notification() { Type = Library.DTO.NotificationType.Success }; DTO.SearchFilterData result = new DTO.SearchFilterData(); result.YesNos = new List <Support.DTO.YesNo>(); result.ClientPaymentMethods = new List <Support.DTO.ClientPaymentMethod>(); try { result.YesNos = supportFactory.GetYesNo(); result.ClientPaymentMethods = supportFactory.GetClientPaymentMethod(); } catch (Exception ex) { notification.Type = Library.DTO.NotificationType.Error; notification.Message = ex.Message; } return(result); }