blob: 31dbd3f4cf2c35079ecde77cf7afefb3f1703593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
using System.Collections.Generic;
using MoMoney.DTO;
using MoMoney.Presentation.Core;
using MoMoney.Presentation.Views;
using MoMoney.Service.Contracts.Application;
namespace MoMoney.Presentation.Presenters.billing
{
public interface IViewAllBillsPresenter : IContentPresenter
{
}
public class ViewAllBillsPresenter : ContentPresenter<IViewAllBills>, IViewAllBillsPresenter
{
readonly ICommandPump pump;
public ViewAllBillsPresenter(IViewAllBills view, ICommandPump pump) : base(view)
{
this.pump = pump;
}
public override void run()
{
view.attach_to(this);
pump.run<IEnumerable<BillInformationDTO>, IGetAllBillsQuery>(view);
}
}
}
|