public async Task <IHttpActionResult> SearchAlert(int tradingDate, bool force, int?zoneId)
        {
            List <OutStockSearchResult> nlist = null;

            try
            {
                var currentUser = await base.GetCurrentUser();

                AlertBLL bll = new AlertBLL(_unit);

                nlist = bll.SearchAlert(currentUser.Id, tradingDate, force, zoneId);
            }
            catch (Exception ex)
            {
                LogHelper.Error(_log, ex.ToString());
                return(InternalServerError(ex));
            }

            return(Ok(nlist));
        }
Ejemplo n.º 2
0
        public void Test_SearchAlert()
        {
            AlertBLL bll = new AlertBLL(_unit);

            var result = bll.SearchAlert("2b658482-6a38-4ed3-b356-77fe9b1569f1", 20160902, false, null);
        }