public async Task <ActionResult> OnGetAsync() { var offer = await _offerService.GetEntityByIdAsync <Offer>(Id); await _offerService.DeleteAsync(offer); return(Redirect("/")); }