/// <summary> /// Get Risk Profile by level /// </summary> /// <param name="productCode"></param> /// <returns></returns> public static RiskProfile GetRiskProfileByLevel(int level) { using (RiskProfileRepository db = new RiskProfileRepository()) { return(db.GetRiskProfileByLevel(level)); } }
/// <summary> /// Get All Risk Profile /// </summary> /// <param name="productCode"></param> /// <returns></returns> public static IEnumerable <RiskProfile> GetAllRiskProfile() { using (RiskProfileRepository db = new RiskProfileRepository()) { return(db.GetAllRiskProfile()); } }