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

            return(Ok(deleted));
        }