/// <summary> /// Function to display users /// </summary> /// <returns></returns> public static List <Users> DisplayAllUserBL() { List <Users> Ulist = new List <Users>(); try { Ulist = HMS_DAL.ShowAllUsersDAL(); if (Ulist == null) { throw new HMS_Exception("No User Found"); } } catch (HMS_Exception p) { throw p; } catch (SqlException e) { throw e; } return(Ulist); // Returns the list of User }