Exemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            string token = HttpContext.Session.GetString("JWToken");

            if (await _dbPW.DeleteAsync(_urlPW, id, token))
            {
                return(Json(new { success = true, message = "Delete Successfully" }));
            }
            return(Json(new { success = false, message = "Delete Failure" }));
        }