public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var productTypes = await _dayService.DeleteDay(id);

            return(RedirectToAction(nameof(Index)));
        }
Esempio n. 2
0
 public IActionResult DeleteDay(int dayId)
 {
     _dayService.DeleteDay(dayId);
     return(RedirectToAction("Index"));
 }