Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using PersistentLayer;
- namespace BusinessLayer.Booking
- {
- public class BookingCreation
- {
- public string createNewClient(string cFirstName, string cLastName, string cEmail, string cMobile, string cAddress)
- {
- if (cFirstName == "" || cLastName == "" || cMobile == "" || cAddress == "" || cEmail == "")
- {
- throw new Exception();
- }
- BookingDA newClient = new BookingDA();
- newClient.createClient(cFirstName, cLastName, cEmail, cMobile, cAddress);
- return "Success";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement