Esempio n. 1
0
        public async Task <IActionResult> Post([FromBody] Cheque value)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await _chequeRepository.InsertAsync(value);

            return(Created($"cheque/{value.ChequeId}", value));
        }