public async Task <IActionResult> PostMaterialAmount([FromBody] MaterialAmount material) { var result = await _repository.InsertMaterialAmount(material).ConfigureAwait(false); return(result ? new StatusCodeResult(200) : new StatusCodeResult(422)); }