public IHttpActionResult Delete([FromBody] string idNota)
 {
     try
     {
         NoteDAO.Delete(Convert.ToInt64(idNota));
         return(Ok(true));
     }
     catch (Exception ex)
     {
         string messaggio = $"Errore durante la Delete in NotesController --- {ex}";
         log.Error(messaggio);
         return(BadRequest(messaggio));
     }
 }
Exemple #2
0
        public ActionResult Delete(int noteId)
        {
            NoteDAO.Delete(noteId);

            return(RedirectToAction("deleted"));
        }