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

            return(Ok(deleted));
        }