/// <summary> /// Deletes the note. /// </summary> /// <param name="model">The model.</param> /// <param name="userId">The user identifier.</param> /// <returns></returns> public async Task <bool> DeleteNote(int Id, int userId) { try { return(await notes.DeleteNote(Id, userId)); } catch (Exception e) { throw e; } }
public async Task <ResponseNoteModel> DeleteNote(long UserID, long noteID) { try { await redis.RemoveNotesRedisCache(UserID); ResponseNoteModel result = notesRL.DeleteNote(UserID, noteID); return(result); } catch (Exception) { throw; } }
public async Task <bool> DeleteNote(long Id, long noteId) { try { await redis.RemoveNotesRedisCache(Id); bool result = notesRL.DeleteNote(Id, noteId); return(result); //return await Task.FromResult(result); } catch (Exception ex) { throw ex; } }