public HttpResponseMessage Delete(long id) { _quotesRepository.Delete(id); HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK); return(response); }
public async Task <IActionResult> DeleteConfirmed(Guid id) { var quote = await _quotesRepository.GetQuote(id); _quotesRepository.Delete(quote); return(RedirectToAction(nameof(Index))); }
public async Task Delete(int id) { await _repository.Delete(id); }
public void Delete(long id) { _quotesRepository.Delete(id); }