Advertisement
Guest User

BookingCreation.cs

a guest
Apr 17th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using PersistentLayer;
  6.  
  7. namespace BusinessLayer.Booking
  8. {
  9.     public class BookingCreation
  10.     {
  11.         public string createNewClient(string cFirstName, string cLastName, string cEmail, string cMobile, string cAddress)
  12.         {
  13.             if (cFirstName == "" || cLastName == "" || cMobile == "" || cAddress == "" || cEmail == "")
  14.             {
  15.                 throw new Exception();
  16.             }
  17.             BookingDA newClient = new BookingDA();
  18.             newClient.createClient(cFirstName, cLastName, cEmail, cMobile, cAddress);
  19.             return "Success";
  20.         }
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement