コード例 #1
0
        public IActionResult Index(SearchViewModel vm)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    retPage = _phoneService.GetPage(vm.Search);
                }
                catch (Exception ex)
                {
                    ModelState.Clear();
                    ViewBag.Message = $" Sorry we are facing Problem here {ex.Message}";
                }
            }

            return(View(retPage));
        }