public void RenameFolder(FolderViewModel folder) { var folderEntity = _folderRepository.FindById(folder.Id); folderEntity.Name = folder.Name; _folderRepository.Update(folderEntity); }