public ActionResult UserEdit(Guid id) { UserEntity entity = _userService.GetUserById(id); if (entity == null) { return(View("Error")); } return(View(entity)); }