Example #1
0
        public ActionResult Search(TableViewModels model)
        {
            try
            {
                var datas = _factory.GetListTable(model.StoreID, null, CurrentUser.ListOrganizationId);
                datas = datas.Where(x => x.StoreID == model.StoreID).ToList();

                model.ListItem = datas;
            }
            catch (Exception ex)
            {
                _logger.Error("Table_Search: " + ex);
                return(new HttpStatusCodeResult(400, ex.Message));
            }

            return(PartialView("_ListData", model));
        }