コード例 #1
0
 private void ExecuteDeleteNoteCommand()
 {
     if (SelectedNote != null)
     {
         if (_noteDataProvider != null)
         {
             _noteDataProvider.DeleteNote(SelectedNote.Note.GUID);
             Notes.Remove(SelectedNote);
         }
     }
 }
コード例 #2
0
        public ActionResult DeleteNote(string guid)
        {
            ActionResult result = BadRequest();

            if (!string.IsNullOrEmpty(guid))
            {
                _noteDataProvider.DeleteNote(guid);
                result = Ok();
            }

            return(result);
        }
コード例 #3
0
 public IHttpActionResult DeleteNote(long Id, DateTime modifiedOn)
 {
     return(new HttpResult <Response <NoteModel> >(_noteDataProvider.DeleteNote(Id, modifiedOn), Request));
 }