diff options
Diffstat (limited to 'slips/src/app/Marina/Web/Services/RegistrationWebServices.cs')
| -rw-r--r-- | slips/src/app/Marina/Web/Services/RegistrationWebServices.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Web/Services/RegistrationWebServices.cs b/slips/src/app/Marina/Web/Services/RegistrationWebServices.cs new file mode 100644 index 0000000..ac98fe5 --- /dev/null +++ b/slips/src/app/Marina/Web/Services/RegistrationWebServices.cs @@ -0,0 +1,38 @@ +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 RegistrationWebServices {
+ public RegistrationWebServices() : this( Resolve.DependencyFor< IRegistrationTasks >( ) ) {}
+
+ public RegistrationWebServices( IRegistrationTasks underlyingTask ) {
+ _underlyingTask = underlyingTask;
+ }
+
+ public IEnumerable< DisplayResponseLineDTO > RegisterNew( RegisterCustomerDTO customer ) {
+ return _underlyingTask.RegisterNew( customer );
+ }
+
+ public IEnumerable< DisplayResponseLineDTO > AddNewBoatUsing( BoatRegistrationDTO boat ) {
+ return _underlyingTask.AddNewBoatUsing( boat );
+ }
+
+ [WebMethod]
+ public CustomerRegistrationDisplayDTO LoadRegistrationFor( long customerId ) {
+ return _underlyingTask.LoadRegistrationFor( customerId );
+ }
+
+ public IEnumerable< DisplayResponseLineDTO > UpdateRegistrationFor( UpdateCustomerRegistrationDTO registration ) {
+ return _underlyingTask.UpdateRegistrationFor( registration );
+ }
+
+ public IEnumerable< BoatRegistrationDTO > AllBoatsFor( long customerId ) {
+ return _underlyingTask.AllBoatsFor( customerId );
+ }
+
+ private readonly IRegistrationTasks _underlyingTask;
+ }
+}
\ No newline at end of file |
