public bool Confirm_PaymentBLL(Customer aCustomer, Record aRecord, Cost aCost) { if (aCustomer.Name == "" || aCustomer.Age < 18 || aCustomer.Sex == "" || aCustomer.DOB == "" || aCustomer.Profession == "" || aCustomer.ProfessionAddress == "" || aCustomer.PresentAddress == "" || aCustomer.PermanentAddress == "" || aCustomer.ContactNo == "" || aCustomer.Email == "" || aCustomer.NIDorPassportNo == "" || aRecord.RoomID == 0 || aRecord.RoomNO == "" || aRecord.BookingDate == "" || aRecord.CheckInDate == "" || aRecord.CheckOutDate == "" || aRecord.PaymentStatus == "" || aCost.TotalCost == 0 || aCost.Due == 0) { return(false); } else { PaymentDAL aPaymentDAL = new PaymentDAL(); bool Result = aPaymentDAL.Confirm_PaymentDAL(aCustomer, aRecord, aCost); return(Result); } }