예제 #1
0
        public static List <Entity> DisplayPL()
        {
            List <Entity> details = new List <Entity>();

            details = DTHDAL.DisplayPL();
            return(details);
        }
예제 #2
0
        public bool AddBL(Entity twoWheelerApplicant)
        {
            bool isAdded = false;

            try
            {
                DTHDAL applicantOperations = new DTHDAL();
                if (ValidateApplicant(twoWheelerApplicant))
                {
                    isAdded = DTHDAL.AddStudentDAL(twoWheelerApplicant);
                }
                else
                {
                    throw new ExceptionDTH("Validation Failed!!! details could not be added");
                }
                if (isAdded == false)
                {
                    throw new ExceptionDTH("Applicant Details not Added");
                }
            }
            catch (ExceptionDTH e)
            {
                throw e;
            }
            return(isAdded);
        }
예제 #3
0
        public Entity SearchBLL(string applicantName)
        {
            Entity searchedApplicant = null;

            try
            {
                DTHDAL twoWheelerApplicantDAL = new DTHDAL();
                searchedApplicant = twoWheelerApplicantDAL.SearchDAL(applicantName);
                if (searchedApplicant == null)
                {
                    throw new ExceptionDTH("Applicant not found");
                }
            }
            catch (ExceptionDTH Exception) { throw Exception; }
            return(searchedApplicant);
        }
예제 #4
0
 public static bool UnsubscribePL(string email, string name)
 {
     return(DTHDAL.UnsubscribePL(email, name));
 }