Пример #1
0
 public IActionResult PersonFlag(PersonFlagSearchModel model)
 {
     model = InitializePersonFlagModel(model);
     if (Request.IsAjaxRequest())
     {
         model = _customerApiClient.GetPersonFlags(model).Result;
         return(PartialView("PersonFlag", model));
     }
     return(View(model));
 }
Пример #2
0
        public IActionResult Index(int personId)
        {
            var model = InitializeModel(null);

            model.PersonId = personId;
            if (Request.IsAjaxRequest())
            {
                model = _customerFacadeApiClient.GetPersonFlags(model).Result;
                return(PartialView("Index", model));
            }
            return(View(model));
        }