summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina/Web/Services/LeaseWebServices.cs
diff options
context:
space:
mode:
Diffstat (limited to 'slips/src/app/Marina/Web/Services/LeaseWebServices.cs')
-rw-r--r--slips/src/app/Marina/Web/Services/LeaseWebServices.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Web/Services/LeaseWebServices.cs b/slips/src/app/Marina/Web/Services/LeaseWebServices.cs
new file mode 100644
index 0000000..b09cc76
--- /dev/null
+++ b/slips/src/app/Marina/Web/Services/LeaseWebServices.cs
@@ -0,0 +1,26 @@
+using System.Collections.Generic;
+using System.Web.Services;
+using Marina.Infrastructure.Container;
+using Marina.Presentation.DTO;
+using Marina.Task;
+
+namespace Marina.Web.Services {
+ public class LeaseWebServices {
+ public LeaseWebServices() : this( Resolve.DependencyFor< ILeaseTasks >( ) ) {}
+
+ public LeaseWebServices( ILeaseTasks underlyingTask ) {
+ _underlyingTask = underlyingTask;
+ }
+
+ public IEnumerable< DisplayLeaseDTO > FindAllLeasesFor( long customerId ) {
+ return _underlyingTask.FindAllLeasesFor( customerId );
+ }
+
+ [WebMethod]
+ public DisplayResponseLineDTO RequestLeaseUsing( SubmitLeaseRequestDTO request ) {
+ return _underlyingTask.RequestLeaseUsing( request );
+ }
+
+ private readonly ILeaseTasks _underlyingTask;
+ }
+} \ No newline at end of file