Beispiel #1
0
        public IActionResult Put(int id, [FromBody] QuoteCreateDto value)
        {
            if (!_myService.Exists(id))
            {
                return(NotFound());
            }

            _myService.UpdateQuote(id, value);

            return(Ok());
        }
Beispiel #2
0
 public async Task <IActionResult> Post([FromBody] QuotesService.UpdateRequest request) =>
 Ok(await _quotesService.UpdateQuote(request));