예제 #1
0
파일: NotesBL.cs 프로젝트: shiv-N/Fundoo
 /// <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;
     }
 }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
            }
        }