public IActionResult Get(Guid id) { using (_databaseContextFactory.Create()) { return(Ok(new { Data = _dataRowMapper.MapObject <FormulaModel>(_formulaQuery.Get(id)) })); } }
public IActionResult Get(Guid id) { using (_databaseContextFactory.Create()) { return(Ok(new { Data = _dataRowMapper.MapObject <MatrixModel>(_matrixQuery.Find(new MatrixSearchSpecification().WithId(id))) })); } }