/// <summary> /// Get all users. /// </summary> /// <returns>A collection of DTOExample with all users.</returns> public List <DTOExample> getAllUsers() { using (dbContext) { // Get all users. return(exampleRepository.getAllUsers(dbContext)); } }