コード例 #1
0
        public IActionResult Index(searcher val)
        {
            if (HttpContext.Session.GetString("LoginID") == null)
            {
                return(RedirectToAction("Login", "Users"));
            }
            CentricsContext context = HttpContext.RequestServices.GetService(typeof(Centrics.Models.CentricsContext)) as CentricsContext;

            ViewData["viewer"] = context.SearchClientAddress(val.searchvalue);

            return(View());
        }