public bool AddServiceReservationContractDetail(ReservationServiceDetail detail)
 {
     if (detail != null)
     {
         return(serviceDetail.AddReservationServiceDetail(detail) ? true : false);
     }
     return(false);
 }
 public bool AddServiceDetail(string serviceId, string note, int contractId)
 {
     Trace.WriteLine("---------------servicedetail-----------" + contractId + serviceId + note);
     if (serviceId != "")
     {
         Service ser = servicebll.GetServiceById(serviceId);
         ReservationServiceDetail detail = new ReservationServiceDetail();
         detail.ReservationContractId = contractId;
         detail.ServiceId             = serviceId;
         detail.Note     = note;
         detail.Quantity = 1;
         detail.Price    = (decimal)ser.Price;
         if (contractDetailBLL.AddServiceReservationContractDetail(detail))
         {
             return(true);
         }
     }
     return(false);
 }