예제 #1
0
        public DepositListByOwnerListForVm ViewDepositsByOwnerId(int ownerId)
        {
            var deposits = _depositRepository.GetDepositByOwnerId(1)
                           .ProjectTo <DepositByOwnerVm>(_mapper.ConfigurationProvider).ToList();

            DepositListByOwnerListForVm result = new DepositListByOwnerListForVm()
            {
                Count          = deposits.Count,
                DepositByOwner = deposits
            };

            return(result);
        }