public IActionResult InsertImage(Models.User.Request request) { var userEmail = HttpContext.Session.GetString("userEmail"); if (!string.IsNullOrEmpty(request.imageData)) { _userDB.updateUserImg(userEmail, request.imageData); context.Clients.All.SendAsync("refreshUsers"); } return(Ok()); }