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

            return(Ok(deleted));
        }