This commit is contained in:
@@ -17,4 +17,10 @@ public class DetailModel(InquiryService inquiryService) : PageModel
|
||||
Inquiry = await inquiryService.GetByIdAsync(id, ct);
|
||||
return Page();
|
||||
}
|
||||
|
||||
public async Task<IActionResult> OnPostDeleteAsync(int id, CancellationToken ct)
|
||||
{
|
||||
await inquiryService.DeleteAsync(id, ct);
|
||||
return RedirectToPage("/Admin/Inquiries/Index");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user