public async Task <ActionResult> DeleteConfirm(DeleteBazaarList model) { if (ModelState.IsValid) { // silme islemini yap await _bazaarListService.Delete(model.Id); } // ve // liste sayfasina gonder return(RedirectToAction("Index", "BazaarList")); }
public async Task <ActionResult> Delete(int id) { await _bazaarListService.Delete(id); return(Ok()); }