public SearchInfoInitViewModel SearchInfoInit() { #region 參數宣告 SearchInfoInitViewModel searchInfoInit = new SearchInfoInitViewModel(); IActorSettingService actorSettingService = new ActorSettingService(); #endregion #region 流程 //檢查是否驗證通過 if (!_authState.IsAuth) { throw new Exception(_authState.AuthDescription); } try { //取得SearchInfoInit searchInfoInit = actorSettingService.QuerySearchInfoInit(); } catch (Exception ex) { throw ex; } return(searchInfoInit); #endregion }
public SearchInfoInitViewModel SearchInfoInit() { #region 參數宣告 SearchInfoInitViewModel searchInfoInit = new SearchInfoInitViewModel(); IDeviceSellPriceHistoryService deviceSellPriceHistoryService = new DeviceSellPriceHistoryService(); IAuthorityService authorityService = new AuthorityService(); #endregion #region 流程 //檢查是否驗證通過 if (!_authState.IsAuth) { throw new Exception(_authState.AuthDescription); } try { //取得SearchInfoInit searchInfoInit = deviceSellPriceHistoryService.QuerySearchInfoInit(); } catch (Exception ex) { throw ex; } return(searchInfoInit); #endregion }
/// <summary> /// 初始化搜尋列表(下拉選單) /// </summary> /// <returns></returns> public SearchInfoInitViewModel QuerySearchInfoInit() { #region 參數宣告 SearchInfoInitViewModel searchInfoInit = new SearchInfoInitViewModel(); #endregion #region 流程 return(searchInfoInit); #endregion }