public IHttpActionResult Get(int pageNo = 0, int pageSize = 10, string orderBy = "Model", string sortDirection = "Asc") { var result = _productsManager.GetProductsPagedFiltered(pageNo, pageSize, orderBy, sortDirection); if (!result.Success) { return(BadRequest(result.Message)); } return(Ok(result.Data)); }