Exemple #1
0
        public async Task <ActionResult> OnGetAsync()
        {
            var offer = await _offerService.GetEntityByIdAsync <Offer>(Id);

            await _offerService.DeleteAsync(offer);

            return(Redirect("/"));
        }