/// <summary> /// Deletes the budgeters. /// </summary> /// <param name="budgeterId">The budgeter identifier.</param> /// <returns></returns> public async Task <APIResponse> DeleteBudgeters(int budgeterId) { try { var client = httpClientFactory.CreateClient(EventAssistantServiceOperation.serviceName); var response = await client.DeleteAsync(servicesConfig.EventAssistant + EventAssistantServiceOperation.DeleteBudgeters(budgeterId)); return(new APIResponse(response.StatusCode)); } catch (Exception ex) { logger.Error(ex, "Exception in method 'DeleteBranch()'"); var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message; return(new APIResponse(exMessage, HttpStatusCode.InternalServerError)); } }