public class UserController : Controller
{
private Entities db = new Entities();
public ActionResult Index()
int userId = (int)Session["LoggedUserID"];
var user = db.Users.SingleOrDefault(u=>u.UserId==userId);
if (user != null) return View(user); // this return View();
}
please help me.