public IActionResult Get([FromQuery] Page page, [FromQuery] Filter filter, [FromServices] CollateralDb db) { if (page == null || page.PageNo < 1 || page.PageSize < 1) { return(StatusCode((int)HttpStatusCode.BadRequest, new { error = "invalid page details" })); } return(Ok(_dao.GetAll(db, page, filter))); }
public IActionResult Get([FromQuery] Page page, [FromQuery] Filter filter, [FromServices] CollateralDb db) { return(Ok(_dao.GetAll(page, filter, db))); }