Example #1
0
        public async Task <IActionResult> Post([FromBody] Material material)
        {
            var result = await _repository.Insert(material).ConfigureAwait(false);

            return(result ? new StatusCodeResult(200) : new StatusCodeResult(422));
        }