public IActionResult ChangeNoteBackgroundColor(long NoteId, string ColorCode)
 {
     try
     {
         var identity = User.Identity as ClaimsIdentity;
         if (identity != null)
         {
             IEnumerable <Claim> claims = identity.Claims;
             long Id     = Convert.ToInt64(claims.Where(p => p.Type == "Id").FirstOrDefault()?.Value);
             bool result = noteBL.ChangeBackgroundColor(NoteId, Id, ColorCode).Result;
             return(Ok(new { success = true, Message = "note background color changed", Note = result }));
         }
         return(BadRequest(new { success = false, Message = "no user is active please login" }));
     }
     catch (Exception exception)
     {
         return(BadRequest(new { success = false, exception.Message }));
     }
 }