public async Task <IActionResult> DeleteConfirmed(int id) { var store = await storeBusiness.getStoreById(id); await storeBusiness.DeleteByStore(store); return(RedirectToAction(nameof(Index))); }
public async Task <IActionResult> DeleteConfirmed(int id) { var store = await storeBusiness.getStoreById(id); await storeBusiness.DeleteByStore(store); return(RedirectToAction(nameof(Index))); }