public ActionResult ChangeAvatar(ChangeAvatarViewModel model)
        {
            if (ModelState.IsValid)
            {
                var userId = _identityFacade.GetUserId();
                if (!_fileValidator.IsValidFiletype(model.file))
                {
                    ModelState.AddModelError("", "Invalid file format!");
                    return(View(model));
                }
                _imageRepository.AddImageToDb(userId, model.file);
                return(RedirectToAction("Index", "Manage"));
            }

            return(View());
        }