⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profile.cs

📁 ASP.net网站开发四“酷”全书:新闻、论坛、电子商城、博客_源码
💻 CS
字号:
using System;

//References to PetShop specific libraries
//PetShop DAL interfaces
using BookShop.IDAL;

namespace BookShop.BLL{
	
	/// <summary>
	/// A business compoment to manage user profiles
	/// </summary>
	public class Profile{

		/// <summary>
		/// A method to get the banner location from the 
		/// data store give a favourite category
		/// </summary>
		/// <param name="favCategory">A user's favourite category</param>
		/// <returns>The location of the Banner Image</returns>
		public string GetBannerPath(string favCategory) {

			// Validate input
			if (favCategory.Trim() == string.Empty)
				return null;

			// Get an instance of the Profile DAL using the DALFactory
			IProfile dal = BookShop.DALFactory.Profile.Create();

			// Return the data from the DAL
			return dal.GetBannerPath(favCategory);
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -