public ActionResult Index(string id)
        {
            if (id.Trim() != null)
            {
                userAcc user = db.userAcc.Find(id.Trim());


                if (user.GetType() == null) // type ı null ise httpnotfound ver diyorum ama bana nesne ayarlanamadı diyor.
                {
                    return(HttpNotFound());
                }
                else
                {
                    return(View(user));
                }
            }
            else
            {
                return(HttpNotFound());
            }
        }
 public ActionResult ProfilGuncelle(string id)
 {
     id = User.Identity.Name;
     if (id.Trim() != null)
     {
         userAcc user = db.userAcc.Find(id.Trim());
         if (user.GetType() == null) // type ı null ise httpnotfound ver diyorum ama bana nesne ayarlanamadı diyor.
         {
             return(HttpNotFound());
         }
         else if (user.userName != User.Identity.Name)
         {
             return(HttpNotFound());
         }
         else
         {
             return(View(user));
         }
     }
     else
     {
         return(HttpNotFound());
     }
 }