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); }