public IHttpActionResult GetProductAttributeBySubCategoryId([FromBody] IdViewModel idViewModel) { try { return(Ok(ProductAttributeManager.GetProductAtrributeBySubCategory(idViewModel.Id))); } catch (Exception exception) { return(InternalServerError(exception)); } }