public IActionResult Put(int id, [FromBody] QuoteCreateDto value) { if (!_myService.Exists(id)) { return(NotFound()); } _myService.UpdateQuote(id, value); return(Ok()); }
public async Task <IActionResult> Post([FromBody] QuotesService.UpdateRequest request) => Ok(await _quotesService.UpdateQuote(request));