public async Task <ResponseNoteModel> UpdateNote(ResponseNoteModel note) { try { await redis.RemoveNotesRedisCache(note.UserID); if (note.isTrash || note.isArchieve) { note.isPin = false; } return(notesRL.UpdateNote(note)); } catch (Exception) { throw; } }
public async Task <NoteModels> UpdateNote(NoteModels note) { try { await redis.RemoveNotesRedisCache(note.Id); if (note.IsTrash || note.IsArchive) { note.IsPin = false; } return(notesRL.UpdateNote(note)); } catch (Exception) { throw; } }