Advertisement
Guest User

BookingController.cs

a guest
Apr 17th, 2013
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.76 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using BusinessLayer;
  6. using BusinessLayer.Booking;
  7.  
  8. namespace ControllerLayer
  9. {
  10.     public class BookingController
  11.     {
  12.  
  13.         #region Client Related Tasks
  14.  
  15.         public string createNewClient(string cFirstName, string cLastName, string cEmail, string cMobile, string cAddress)
  16.         {
  17.             try
  18.             {
  19.                 BookingCreation newClient = new BookingCreation();
  20.                 newClient.createNewClient(cFirstName, cLastName, cEmail, cMobile, cAddress);
  21.                 return "success";
  22.  
  23.             }
  24.             catch
  25.             {
  26.                 throw new Exception();
  27.  
  28.             }
  29.         }
  30.  
  31.         #endregion
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement