public ActionResult Index(string s, string sort_by, string sort_order, int offset, int limit) { var res = logic_operations.Index(s, sort_by, sort_order, offset, limit); if (res.count == 0) { return(BadRequest("No orders with such data")); } return(Ok(new { res.res, res.count })); }
public void SortId_WorksRight() { var req = service.Index("", "Id", "decs", 0, 0); Assert.Equal(6, req.res[0].Id); }