Esempio n. 1
0
 /// <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));
     }
 }
Esempio n. 2
0
 /// <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());
     }
 }