public LandAttribute GetLand(string assetsNum) { try { return(_landRep.FirstOrDefault(Sql.Builder.Where("ASSETSNUM=@0", assetsNum))); } catch (Exception ex) { List <LandAttribute> _tempList = new List <LandAttribute>(); _tempList = _landRep.Query(Sql.Builder.Where("ASSETSNUM=@0", assetsNum)); return(_tempList[0]); } }