public async Task <ActionResult> DropdownList() { var user = await _userRepository.GetUser(User.Identity.Name); if (user != null) { var documentTypes = await _documentTypeRepositoy.GetByOrg(user.CurrentOrganisation); if (documentTypes != null) { return(View(documentTypes)); } } return(RedirectToAction("Index", "Home")); }