![]() | RemAdminDeleteMethod Method |
Namespace: Paperwork.Connect
public a_GenericResult DeleteMethod( ObjectName methodName )
public void DeleteMethod() { bool activeOnly = true; string methodType = string.Empty; ObservableCollection<LookupItem> getmethodlist = p.rLookup.GetMethodList(activeOnly, methodType); foreach (LookupItem method in getmethodlist) { if (method.Name == "Sözleşme Bitişi Kontrolü") { ObjectName name = new ObjectName(method.Name); a_GenericResult retval = p.rAdmin.DeleteMethod(name); if (retval.ErrorCode != 0) throw new Exception(retval.Message); } } }