public async Task <ResponseNoteModel> AddUserNoteTask(ResponseNoteModel note) { try { if (note.Collaborators != null) { note.Collaborators = note.Collaborators.Distinct(StringComparer.OrdinalIgnoreCase).ToList(); } if (note.isTrash || note.isArchieve) { note.isPin = false; } await redis.RemoveNotesRedisCache(note.UserID); return(notesRL.AddUserNote(note)); } catch (Exception) { throw; } }
public async Task <AddNotesModel> AddUserNoteTask(AddNotesModel note) { try { if (note.IsTrash || note.IsArchive) { note.IsPin = false; } await redis.RemoveNotesRedisCache(note.Id); return(notesRL.AddUserNote(note)); } catch (Exception ex) { throw ex; } }