private void ShowModelInformation(int Id) { var result = new CarPartsTypesManager().GetCarPartTypeById(Id); if (result != null) { //hfID.Value = result.ModelID.ToString(); txtNameEn.Text = result.Name_En; txtNameAr.Text = result.Name_Ar; } }
private void DeleteItem(int _ID) { // Execute delete func. bool childIds = new CarPartsTypesManager().DeleteCarPartType(_ID); if (childIds) // deleted. { lblError.Text = Resources.AdminResources_en.SuccessDelete; // success deleted. } else { lblError.Text = Resources.AdminResources_en.ErrorDelete; } }