public JsonResult GetPartsData(string filter) { var result = _partService.GetPartsData(filter == "Equipment" ? "X" : "A || X"); return(Json(result)); }