public IActionResult AddUserNote(AddNotesModel note)
 {
     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);
             note.Id = Id;
             AddNotesModel result = noteBL.AddUserNote(note);
             return(Ok(new { success = true, Note = result }));
         }
         return(BadRequest(new { success = false, Message = "no user is active please login" }));
     }
     catch (Exception exception)
     {
         return(BadRequest(new { success = false, exception.Message }));
     }
 }