public ActionResult Profile(string id) { ProfileViewModel viewModel; if (!string.IsNullOrEmpty(id)) { var user = _userService.Get(id); viewModel = _userMapper.MapToProfileViewModel(_userService.FindByUserName(user.UserName)); } else { viewModel = _userMapper.MapToProfileViewModel(_userService.FindByUserName(User.Identity.GetUserName())); } return(View("Profile", viewModel)); }