public void GetMaterialsRecordCountTest() { var condition = new AggregatedConditionDto(); var count = _service.GetMaterialsRecordCount(condition).Result; Assert.IsTrue(count > 0); Console.WriteLine($"Total Materials: {count}"); Assert.Pass(); }
public async Task <int> GetMaterialsRecordCount([FromBody] AggregatedConditionDto condition) { return(await _dbService.GetMaterialsRecordCount(condition)); }