Пример #1
0
 public IActionResult Get(Guid id)
 {
     using (_databaseContextFactory.Create())
     {
         return(Ok(new
         {
             Data = _dataRowMapper.MapObject <FormulaModel>(_formulaQuery.Get(id))
         }));
     }
 }
Пример #2
0
 public IActionResult Get(Guid id)
 {
     using (_databaseContextFactory.Create())
     {
         return(Ok(new
         {
             Data = _dataRowMapper.MapObject <MatrixModel>(_matrixQuery.Find(new MatrixSearchSpecification().WithId(id)))
         }));
     }
 }