public ActionResult Create(Profiles profiles)
        {
            if (ModelState.IsValid)
            {
                profiles.UserId = Guid.NewGuid();
                db.Profiles.Add(profiles);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(profiles);
        }
 public ActionResult Edit(Profiles profiles)
 {
     if (ModelState.IsValid)
     {
         db.Entry(profiles).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(profiles);
 }