using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CallCenterApi.BLL { public partial class T_Sys_Patirnt { private readonly CallCenterApi.DAL.T_Sys_Patirnt dal = new DAL.T_Sys_Patirnt(); public T_Sys_Patirnt() { } public List DataTableToList(DataTable dt) { List modelList = new List(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { CallCenterApi.Model.T_Sys_Patirnt model; for (int n = 0; n < rowsCount; n++) { model = dal.DataRowToModel(dt.Rows[n]); if (model != null) { modelList.Add(model); } } } return modelList; } public CallCenterApi.Model.T_Sys_Patirnt GetModel(int PatirntID) { return dal.GetModel(PatirntID); } } }