Beispiel #1
0
 internal static dynamic GetMember(WebGridRow row, string name) {
     object result;
     if (row.TryGetMember(name, out result)) {
         return result;
     }
     throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture,
         HelpersResources.WebGrid_ColumnNotFound, name));
 }
Beispiel #2
0
 public static int Level0Count(this WebGridRow webGridRow)
 {
     // extension method code here
     return(SkillLevelStaffs.Where(a => a.Level.Name.Contains("0")).Count());
 }