public async Task <ActionResult> DeleteConfirmed(int id) { Feedback feedback = await feedbackService.GetFeedbackByIdAsync(id); feedbackService.Delete(feedback); return(RedirectToAction("Index")); }
public IActionResult Delete(int id) { if (!ModelState.IsValid) { return(new BadRequestObjectResult(ModelState)); } else { _feedbackService.Delete(id); _feedbackService.Save(); return(new OkObjectResult(id)); } }
public void Delete(Feedback entity) => _feedbackService.Delete(entity);
public void Delete(Feedback feedback) => _service.Delete(feedback);