/// <summary> /// 删除地区价格趋势 /// </summary> /// <param name="entity">地区价格趋势</param> public HttpResponseMessage Delete([FromBody]AreaPriceTrend entity) { if (entity == null) { return new HttpResponseMessage(HttpStatusCode.BadRequest); } else { AreaPriceTrendFunction areaPriceTrendFunction = new AreaPriceTrendFunction(); int error = areaPriceTrendFunction.DeleteAreaPriceTrend(entity); var response = GetResponse.PriceTrendResponse(error); return response; } }
/// <summary> /// 删除地区价格趋势 /// </summary> /// <param name="area">地区</param> public HttpResponseMessage Delete(string area) { if (string.IsNullOrEmpty(area)) { return new HttpResponseMessage(HttpStatusCode.BadRequest); } else { var entity = new AreaPriceTrend() { Area = area }; AreaPriceTrendFunction areaPriceTrendFunction = new AreaPriceTrendFunction(); int error = areaPriceTrendFunction.DeleteAreaPriceTrend(entity); var response = GetResponse.PriceTrendResponse(error); return response; } }