public async Task <IActionResult> deleteProduct(string id) { var delete = await _productsrepository.DeleteNew(id); //await _productsrepository.DeleteNew(id); return(RedirectToAction("Edit", new { id = delete.Idusuario })); }
public async Task <IActionResult> deleteProduct(string id) { var delete = await _productsrepository.DeleteNew(id); //await _productsrepository.DeleteNew(id); return(RedirectToAction("Edit", new { id = delete.Idusuario })); }