Example #1
0
        public int UpdateTrangThai(ObjDichVu obj)
        {
            SqlParameter[] para =
            {
                new SqlParameter("DV_MADV",      obj.DV_MaDichVu),
                new SqlParameter("DV_TRANGTHAI", obj.DV_TrangThai)
            };

            return(db.ExcuteSQL("SP_DICHVU_UPDATE_TRANGTHAI", para));
        }
Example #2
0
        public int Update(ObjDichVu obj)
        {
            SqlParameter[] para =
            {
                new SqlParameter("DV_MADV",      obj.DV_MaDichVu),
                new SqlParameter("DV_TENDV",     obj.DV_TenDichVu),
                new SqlParameter("DV_GIADICHVU", obj.DV_GiaDichVu),
                new SqlParameter("DV_GHICHU",    obj.DV_MoTa)
            };

            return(db.ExcuteSQL("SP_DICHVU_UPDATE", para));
        }
Example #3
0
        public int Insert(ObjDichVu obj)
        {
            SqlParameter[] para =
            {
                new SqlParameter("DV_MADV",      obj.DV_MaDichVu),
                new SqlParameter("DV_TENDV",     obj.DV_TenDichVu),
                new SqlParameter("DV_GIADICHVU", obj.DV_GiaDichVu),
                new SqlParameter("DV_GHICHU",    obj.DV_MoTa),
                new SqlParameter("DV_TRANGTHAI", obj.DV_TrangThai)
            };

            return(db.ExcuteSQL("SP_DICHVU_INSERT", para));
        }
Example #4
0
 public int UpdateTrangThai(ObjDichVu obj)
 {
     return(dal.UpdateTrangThai(obj));
 }
Example #5
0
 public int Update(ObjDichVu obj)
 {
     return(dal.Update(obj));
 }
Example #6
0
 public int Insert(ObjDichVu obj)
 {
     return(dal.Insert(obj));
 }