public JsonResult FilterAccounts(FilterParameter searchParam) { var accountModel = new List <AccountModel>(); var accountViewModel = new List <AccountViewModel>(); accountModel = _accountService.AccountFilter(searchParam); Mapper.Map(accountModel, accountViewModel); return(Json(new { Success = true, Accounts = accountViewModel, Message = "Successful" }, JsonRequestBehavior.AllowGet)); }