Пример #1
0
 public List<GetChuDeHoa_Result> ChuDeHoaResults()
 {
     using (BanHoaEntityEntities banHoaEntity=new BanHoaEntityEntities())
     {
         return banHoaEntity.GetChuDeHoa().ToList();
     }
 }
Пример #2
0
 public List<GetFlower_Result> GetFlowerResults()
 {
     using (BanHoaEntityEntities banHoaEntity=new BanHoaEntityEntities())
     {
         return banHoaEntity.GetFlower().ToList();
     }
 }
Пример #3
0
 public string InsertFlower(Hoa hoa)
 {
     ObjectParameter err = new ObjectParameter("Error", typeof(string));
     using (BanHoaEntityEntities banHoaEntity=new BanHoaEntityEntities())
     {
         banHoaEntity.InsertFlower(hoa.MaHoa, hoa.TenHoa, hoa.GiaBan, hoa.SoLuong, hoa.HinhAnh, hoa.MaChuDe, err);
     }
     return err.Value.ToString();
 }