public ActionResult JoinToConference(RegistrToConfer model) { if (model != null) { MembersOfConference member = new MembersOfConference { ConferenceId = model.ConfId, UserId = _userService.GetIdByAspId(User.Identity.GetUserId()) }; ReportConference report = new ReportConference { Title = model.Topic, Extension = ".doc", Content = _conferencService.ConvertFile(model.ReportText), Author = model.Author }; _conferencService.AddMembersToConference(member, report); } return(RedirectToAction("Index", "Conference")); }