Ejemplo n.º 1
0
        public async Task <IActionResult> OnPost(int Pid, int id)
        {
            if (!ModelState.IsValid)
            {
                return(Page());
            }

            featureViewModel.id = id;
            await _featureService.DeleteAsync(Pid, featureViewModel);

            return(Redirect($"/Detials/{Pid}"));
        }