public void DeleteCalculation(Action <string, Exception> action, long periodId, long id) { var url = string.Format(baseAddress + makeApiAdress(periodId) + "/" + id); WebClientHelper.Delete(new Uri(url, UriKind.Absolute), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteUnitIndexInPeriod(Action <string, Exception> action, long periodId, long unitIndexId) { var url = string.Format(baseAddress + makeApiAdress(periodId) + "?abstractId=" + unitIndexId); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeletePolicy(Action <string, Exception> action, long id) { var url = string.Format(apiAddress + "?Id=" + id); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteFunction(Action <string, Exception> action, long policyId, long functionId) { var url = string.Format(policyFunctionsApiAddress + "?policyId=" + policyId + "&Id=" + functionId); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteLog(Action <string, Exception> action, Guid id) { var url = string.Format(baseAddress + "?Id=" + id); WebClientHelper.Delete(new Uri(url, UriKind.Absolute), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteCustomField(Action <string, Exception> action, long id) { var url = string.Format(apiCustomFieldAddress + "?Id=" + id, UriKind.Absolute); WebClientHelper.Delete(new Uri(url), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteEmployee(Action <string, Exception> action, long periodId, string personnelNo) { var url = string.Format(baseAddress + makeApiAdress(periodId) + "?PersonnelNo=" + personnelNo); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteUser(Action <string, Exception> action, string username) { var url = string.Format(baseAddressUsers + "?partyName=" + username); WebClientHelper.Delete(new Uri(url, UriKind.Absolute), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void LogoutUser(Action <string, Exception> action) { var url = string.Format(baseAddressUsers); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }
public void DeleteVerifier(Action <string, Exception> action, long periodId, long unitId, string personalNo) { var url = string.Format(baseAddress + createUnitVerifierApiAdress(periodId, unitId) + "?employeeNo=" + personalNo); WebClientHelper.Delete(new Uri(url, PMSClientConfig.UriKind), action, PMSClientConfig.CreateHeaderDic(userProvider.Token)); }