public static List <Entity> DisplayPL() { List <Entity> details = new List <Entity>(); details = DTHDAL.DisplayPL(); return(details); }
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); }
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); }
public static bool UnsubscribePL(string email, string name) { return(DTHDAL.UnsubscribePL(email, name)); }