// GET Delete Action Method public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var productType = await _dayService.DeleteDayAsync(id); if (productType == null) { return(NotFound()); } return(View(productType)); }