Beispiel #1
0
        public Result <AccountModel> Get(AccountSearchFilter accountSearchFilter)
        {
            var result = unitOfWork.Account.Get(accountSearchFilter);

            if (result == null)
            {
                new Result <AccountModel>();
            }

            return(new Result <AccountModel>
            {
                TotalItems = result.TotalItems,
                Items = result.Items.Select(a => accountBuilder.BuildToAccountModel(a)).ToList()
            });
        }