public IActionResult GetById(long id) { var row = new RowRepo(_context).GetRow(id); if (row == null) { return(NotFound()); } return(Ok(new ObjectResult(row))); }
public IActionResult GetAll() { var rows = new RowRepo(_context).GetRows(); if (rows == null) { return(NotFound()); } return(Ok(new ObjectResult(rows))); }