public async Task <IActionResult> OnGet(int?Id) { if (Id == null) { return(NotFound()); } else { this.curentItem = await serviceDetail.GetItemByIdAsync(Id.Value); } if (this.curentItem == null) { return(NotFound()); } else { return(Page()); } }