public IHttpActionResult GetPriceOfConstruction(SearchMap searchDto) { var repos = new TDAssetRespository(); SetionType sectionT = new SetionType(); /* switch (SectionType) * { * case "1":sectionT = SetionType.Region;break; * case "2": sectionT = SetionType.Provice; break; * case "3": sectionT = SetionType.Amphur; break; * }*/ var estimateData = repos.GetPriceOfConstrucion(searchDto); return(Json(estimateData.OrderByDescending(o => Converting.ToDecimal(o.ParcelPrice)).ToList())); }