public HttpResponseMessage GetPromotionMethodPaymentList() { try { List <EnumList> list = GeneralEnumerators.GetList <GeneralEnumerators.enumPromotionMethodPayment>(); return(Request.CreateResponse(HttpStatusCode.OK, list)); } catch (Exception ex) { throw ex; } }
public HttpResponseMessage GetCities() { try { List <EnumList> list = GeneralEnumerators.GetList <GeneralEnumerators.EnumCity>(); return(Request.CreateResponse(HttpStatusCode.OK, list)); } catch (Exception ex) { throw ex; } }
public HttpResponseMessage GetPromotionRecurrenceList() { try { List <EnumList> list = GeneralEnumerators.GetList <GeneralEnumerators.enumPromotionRecurrence>(); return(Request.CreateResponse(HttpStatusCode.OK, list)); //var _clientPromotion = new HttpClient(); //_clientPromotion.BaseAddress = new Uri(CustomConfiguration.WebApiPromotion); //var resultTask = _clientPromotion.GetAsync("api/SystemValues/GetPromotionRecurrenceList").Result; //if (!resultTask.IsSuccessStatusCode) //{ // LogManager.Error("GetPromotionRecurrenceList Handler: Erro ao requisitar web.api promotion: status: " + resultTask.StatusCode); // return Request.CreateResponse(HttpStatusCode.InternalServerError); //} //var promotionRecurrenceOutput = resultTask.Content.ReadAsAsync<List<PromotionRecurrenceOutputDTO>>(); } catch (Exception ex) { throw ex; } }