public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var plan = await _planService.FindByIdAsync(id.Value); if (plan == null) { return(NotFound()); } return(View(plan)); }
public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var plan = await _planService.FindByIdAsync(id.Value); if (plan == null) { return(NotFound()); } return(View(plan)); }