-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKhoa_BLL.cs
37 lines (34 loc) · 828 Bytes
/
Khoa_BLL.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using DAL;
using DTO;
using System.Collections.Generic;
namespace BLL
{
public class Khoa_BLL
{
private static Khoa_BLL _Instance;
public static Khoa_BLL Instance
{
get
{
if (_Instance == null)
_Instance = new Khoa_BLL();
return _Instance;
}
}
private Khoa_BLL() { }
public List<CBBItem> GetAllKhoa()
{
List<KHOA> li = Khoa_DAL.Instance.GetAllKhoa();
List<CBBItem> res = new List<CBBItem>();
foreach (KHOA k in li)
{
res.Add(new CBBItem()
{
Id = k.MaKhoa,
Value = k.TenKhoa
});
}
return res;
}
}
}