public ActionResult CustomerList() { if (Helper.SessionHelper.GetCurrentUserID() == 0) { return(RedirectToAction("Registration", "Account")); } CustomerViewModel model = new CustomerViewModel(); model = model.GetCustomerList(); if (Request.IsAjaxRequest()) { return(PartialView("_CustomerList", model)); } return(View(model)); }