Beispiel #1
0
        public async Task <IActionResult> deleteProduct(string id)

        {
            var delete = await _productsrepository.DeleteNew(id);

            //await _productsrepository.DeleteNew(id);

            return(RedirectToAction("Edit", new { id = delete.Idusuario }));
        }