private void ExecuteDeleteNoteCommand() { if (SelectedNote != null) { if (_noteDataProvider != null) { _noteDataProvider.DeleteNote(SelectedNote.Note.GUID); Notes.Remove(SelectedNote); } } }
public ActionResult DeleteNote(string guid) { ActionResult result = BadRequest(); if (!string.IsNullOrEmpty(guid)) { _noteDataProvider.DeleteNote(guid); result = Ok(); } return(result); }
public IHttpActionResult DeleteNote(long Id, DateTime modifiedOn) { return(new HttpResult <Response <NoteModel> >(_noteDataProvider.DeleteNote(Id, modifiedOn), Request)); }