📄 profile.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 + -