public ActionResult Submit(SocialRequestModel request) { var userId = _userProcessor.GetUserIdByName(User.Identity.Name); var streetId = _streetRepository.GetIdByName(request.Street); var domain = new SocialRequest { ProblemId = request.ProblemId, Flat = request.Flat, House = request.House, UserId = userId, StreetId = streetId }; _socialRequestRepository.Add(domain); return(RedirectToAction("Index", "Statistics")); }