/// <summary> /// Deletes the subcription plan. /// </summary> /// <param name="subscriptionplanId">The subscriptionplan identifier.</param> /// <returns></returns> public async Task <APIResponse> DeleteSubcriptionPlan(int subscriptionplanId) { try { var client = httpClientFactory.CreateClient(VendorServiceOperation.serviceName); var response = await client.DeleteAsync(servicesConfig.Identity + VendorServiceOperation.DeleteSubcriptionPlan(subscriptionplanId)); return(JsonConvert.DeserializeObject <APIResponse>(await response.Content.ReadAsStringAsync())); } catch (Exception ex) { logger.Error(ex, "Exception in method 'DeleteService()'"); var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message; return(new APIResponse(exMessage, HttpStatusCode.InternalServerError)); } }