Exemple #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var status = await _npPatrimonio.DeleteAsync(SD.PatrimonioAPIPath, id, HttpContext.Session.GetString("JWToken"));

            if (status)
            {
                return(Json(new { success = true, message = "Deletado com sucesso!" }));
            }
            return(Json(new { success = false, message = "Falha ao deletar!" }));
        }