public List<string> GetListLoaiTin1()
        {
            List<string> list = new List<string>();
            WebPortal.Repository.LoaiTinLV1 loaiTin = new Repository.LoaiTinLV1();
            foreach (WebPortal.Model.LoaiTin_Lv1 lt in loaiTin.All())
            {
                list.Add(lt.TenLoai);
            }

            return list;
        }
        public int GetIDLoaiTin1FollowName(string tenLoaiTin1)
        {
            WebPortal.Repository.LoaiTinLV1 loaiTin1 = new Repository.LoaiTinLV1();
            foreach (WebPortal.Model.LoaiTin_Lv1 lt in loaiTin1.All())
            {
                if (lt.TenLoai == tenLoaiTin1)
                    return lt.IDLoaiTin_Lv1;
            }

            return -1;
        }
        public void LoadListLoaiTin()
        {
            List<string> list = new List<string>();
            WebPortal.Repository.LoaiTinLV1 loaiTin = new Repository.LoaiTinLV1();
            foreach (WebPortal.Model.LoaiTin_Lv1 lt in loaiTin.All())
            {
                list.Add(lt.TenLoai);
            }

            ListLoaiTin.DataSource = list;
            ListLoaiTin.DataBind();
        }
 public List<WebPortal.Model.LoaiTin_Lv1> GetAllLoaiTin()
 {
     WebPortal.Repository.LoaiTinLV1 loaiTin = new Repository.LoaiTinLV1();
     return loaiTin.All();
 }