/// <summary> /// 根据名称获得模型 /// </summary> /// <param name="modelName">模型名称</param> /// <returns>模型对象</returns> protected BaseModel GetModel(string modelName) { return(MVCSystem.GetModel(modelName)); }
/// <summary> /// 根据类型获得模型 /// </summary> /// <typeparam name="T">模型类型</typeparam> /// <returns>模型对象</returns> protected BaseModel GetModel <T>() where T : BaseModel { return(MVCSystem.GetModel <T>()); }