public Album CreateAlbum(string title, string description, string username) { User user = _userRepository.GetSingleByUsername(username); var UserID = user.Id; var album = new Album() { Title = title, Description = description, DateCreated = DateTime.Now, User_ID = user.Id }; _albumRepository.Add(album); _albumRepository.Commit(); return(album); }