Beispiel #1
0
 public static int DeleteLoaiPhong(string _maLoaiPhong)
 {
     try
     {
         LoaiPhongMod loaiPhongMod = new LoaiPhongMod(_maLoaiPhong);
         return(loaiPhongMod.DeleteLoaiPhong());
     }
     catch { return(0); }
 }
Beispiel #2
0
 public static int UpdateLoaiPhong(string _maLoaiPhong, string _tenLoaiPhong, double _giaPhong, bool _hide)
 {
     try
     {
         LoaiPhongMod loaiPhongMod = new LoaiPhongMod(_maLoaiPhong, _tenLoaiPhong, _giaPhong, _hide);
         return(loaiPhongMod.UpdateLoaiPhong());
     }
     catch
     {
         return(0);
     }
 }