public Boolean GrantAccess(DataTable dtChecked) { Int32 DesignationId = Convert.ToInt32(dtChecked.Rows[0]["DesignationId"]); int delete = Convert.ToInt32(SQLHelp.ExecuteScalarValue("Delete from Mst_Access_Control where DesignationId = " + DesignationId)); Boolean i = DAL.SQLHelp.CopyToServer("Mst_Access_Control", dtChecked); return(i); }