| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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<CallCenterApi.Model.T_Sys_Patirnt> DataTableToList(DataTable dt)
- {
- List<CallCenterApi.Model.T_Sys_Patirnt>
- modelList = new List<Model.T_Sys_Patirnt>();
- 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);
- }
-
- }
- }
|