예제 #1
0
        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));
        }