/// <summary> /// function to return gender count of person /// </summary> /// <returns>integer array</returns> public List <PersonDTO> GetAllPersons() { try { return(personDAL.GetAllPersons()); } catch (DALException dalEx) { return(null); } catch (Exception ex) { throw new BusinessException(ex.Message); } }