public ActionResult Delete(int id) { _performanceService.DeletePerformance(id); return(RedirectToAction("Index")); }
public async Task <IActionResult> DeletePerformance(int id) { bool deleted = await _performanceService.DeletePerformance(id); return(Ok(deleted)); }