var riverId = _dtRiverList.AsEnumerable()
.Where(r => r.Field<string>("river_name").Equals(basin))
.Select(r => r.Field<Int32>("river_id"));
if (riverId.Count() > 0)
{
_dtSubBasin = new DataTable("_dtSubBasin");
objRModelingDAL.BasinId = riverId.ElementAt(0);
_dtSubBasin = objRModelingDAL.GetSubBasin();
}
.Where(r => r.Field<string>("river_name").Equals(basin))
.Select(r => r.Field<Int32>("river_id"));
if (riverId.Count() > 0)
{
_dtSubBasin = new DataTable("_dtSubBasin");
objRModelingDAL.BasinId = riverId.ElementAt(0);
_dtSubBasin = objRModelingDAL.GetSubBasin();
}