public ActionResult Create(SongDto song) { song.AuthorId = Current.UserId; if (!ModelState.IsValid) { return(View(song)); } ISongsRepository <SongDto> songsRepo = Container.Resolve <ISongsRepository <SongDto> >(DefaultRepository); songsRepo.Create(song); return(RedirectToAction("Index")); }