Beispiel #1
0
 public SpecialAttribute GetSpecial(string assetsNum)
 {
     try { return(_specialRep.FirstOrDefault(Sql.Builder.Where("ASSETSNUM=@0", assetsNum))); }
     catch (Exception ex)
     {
         List <SpecialAttribute> _tempList = new List <SpecialAttribute>();
         _tempList = _specialRep.Query(Sql.Builder.Where("ASSETSNUM=@0", assetsNum));
         return(_tempList[0]);
     }
 }