Ejemplo n.º 1
0
        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"));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Delete(int id)
        {
            await _bazaarListService.Delete(id);

            return(Ok());
        }