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

            return(Ok());
        }