public ActionResult Create() { CardViewModel model = new CardViewModel() { CardTypeList = _Cardrepo.GetAllCardTypeList(), }; //////////////////////// // var model = _Cardrepo.GetAllCardsList(); if (Request.IsAjaxRequest()) { return(PartialView("Create", model)); } return(View()); }