private void SetViewData() { var currentUserId = _userManager.GetUserId(User); ViewData["CompanyId"] = new SelectList(_expencesService.GetCompaniesIds(), "Id", "Name"); ViewData["CurrencyId"] = new SelectList(_expencesService.GetCurrenciesIds(), "Id", "Name"); ViewData["OurCompanyId"] = new SelectList(_expencesService.GetOurCompaniesIds(), "Id", "Name"); ViewData["DocumentTypeId"] = new SelectList(_expencesService.GetDocumentTypesIds(), "Id", "Name"); ViewData["PersonId"] = new SelectList(_expencesService.GetPersonsIds(currentUserId), "Id", "Name"); ViewData["UserId"] = new SelectList(_expencesService.GetUsersIds(currentUserId), "Id", "Name"); }