public ActionResult Index()
{
      var user = db.UserProfiles.FirstOrDefault(x => x.UserId == WebSecurity.CurrentUserId);
      var allCategories = db.ProfitCategories
          .Where(x => x.IdUser.UserId==user)
現在のユーザーから書き込まれたレコードのみをインデックス ビューに表示したい。ここから現在の userId を取得します
var user = db.UserProfiles.FirstOrDefault(x => x.UserId == WebSecurity.CurrentUserId);
と  は からへx.IdUser.UserIdの外部キーです。コンパイル時に次のエラーが表示されます: Can not apply operator type   and   .db.ProfitCategoriesdb.UserProfiles==intModels.UserProfiles