public void Update(bll_GroupAuthorization bllGruopAuthorization) { try { cmd = "EXEC Update_GroupAuthorization '" + bllGruopAuthorization.GROUPID + "'"; dataProvider.ExecuteCommand(cmd); } catch (Exception e) { //Use label to print an error >> lbl.text = e.Message; } }
public void Insert(bll_GroupAuthorization bllGruopAuthorization) { try { cmd = "EXEC Insert_GroupAuthorization '" + bllGruopAuthorization.GROUPID + "','" + bllGruopAuthorization.FUNCTIONID + "','" + bllGruopAuthorization.CREATEDATE + "','" + bllGruopAuthorization.AUDUSER + "'"; dataProvider.ExecuteCommand(cmd); } catch (Exception e) { } }