//function overlooding TabCategory public static PairModel Parse(DataSet1.TabCategoryRow uglyRow) { if (uglyRow == null) { return(null); } PairModel tempModel = new PairModel(); tempModel.PairID = uglyRow.CID.ToString(); tempModel.PairName = uglyRow.CategoryName; return(tempModel); }
/// <summary> /// Get the value from TabCategory /// </summary> /// <param name="CategoryRows">Name of the rows</param> /// <returns>Return the value from the rows selected</returns> public static TabCategoryModel Parse(DataSet1.TabCategoryRow CategoryRows) { if (CategoryRows == null) { return(null); } else { TabCategoryModel Tabcategory = new TabCategoryModel(); Tabcategory.Cid = CategoryRows.CID; Tabcategory.CategoryName = CategoryRows.CategoryName; return(Tabcategory); } }