Example #1
0
        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)));
        }
Example #3
0
 public async Task Delete(int id)
 {
     await _repository.Delete(id);
 }
Example #4
0
 public void Delete(long id)
 {
     _quotesRepository.Delete(id);
 }