public static int update(string[] _set, string _where) { string _value = ""; for (int i = 0; i < _set.Length; i++) { if (String.IsNullOrWhiteSpace(_set[i])) { return(i); } } _value += @"TenDichVu=N'" + _set[0] + "',"; _value += @"Gia=N'" + _set[1] + "'"; DTService.update("DICHVU", _value, _where); return(-1); }