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