public IHttpActionResult Get() { using (var reportsService = new ReportsService()) { var reports = reportsService.Get(null, -1, 0); return Ok(reports); } }
public IHttpActionResult Get(int pageNumber) { IEnumerable<Report> reports = null; using (var reportsService = new ReportsService()) { //TODO parametrizar el pageSize reports = reportsService.Get(null, pageNumber, 20); } return Ok(reports); }
public IHttpActionResult ReportsType(string type, int pageNumber) { using (var reportsService = new ReportsService()) { //TODO Parametrizar el pageSize var reports = reportsService.Get(type, pageNumber, 20); return Ok(reports); } }
public List <Report> Get() { return(_rs.Get()); }