コード例 #1
0
        public async Task <RedirectToActionResult> DeleteQrById(int id)
        {
            var result = await _qrCodeRepository.DeleteQR(id);

            if (result > 0)
            {
                return(RedirectToAction("DashBoard"));
            }
            else
            {
                throw new Exception("Couldn't delete your tag.");
            }
        }