public virtual async Task <IActionResult> SaveAvatar(string id, string filename, float X, float Y, float Size)
        {
            //            var user = await _mngr.GetUserAsync(User);
            if (!await CheckAvatarId(id))
            {
                return(Json(JsonError.ERROR_ACCESS_DENIED));
            }

            string fname = $"{AvatarName}_{id}_avatar" + filename.Substring(filename.LastIndexOf('.'));

            if (System.IO.File.Exists(System.IO.Path.Combine(_fileUploader.Folder, fname)))
            {
                System.IO.Directory.CreateDirectory(System.IO.Path.Combine(StorageController.Folder, "Avatars/"));
                _fileUploader.ConvertToAvatar(System.IO.Path.Combine(_fileUploader.Folder, fname), (int)X, (int)Y, (int)Size, System.IO.Path.Combine(StorageController.Folder, $"Avatars/{AvatarName}_{id}.jpg"));

                return(Json(new { Status = "Ok", Url = await UpdateAvatar(id, $"Storage/Avatars/{AvatarName}_{id}.jpg") }));
            }

            return(Json(new { Error = "Not uploaded" }));
        }