public ActionResult Create(WorkExperience workExperience)
        {
            if (ModelState.IsValid)
            {

                workExperience.User = DbContext.Users.Find(User.Identity.GetUserId());
                DbContext.WorkExperiences.Add(workExperience);
                DbContext.SaveChanges();
                return Json(new { Id = workExperience.Id });
            }
            try
            {
                // TODO: Add insert logic here

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
 public ActionResult Edit(int id, WorkExperience workExperience)
 {
     if (id != null)
     {
         WorkExperience wex  = DbContext.WorkExperiences.Find(id);
         if (wex != null)
         {
             wex.WorkPlacement = workExperience.WorkPlacement;
             wex.Address = workExperience.Address;
             wex.Datetime = workExperience.Datetime;
             wex.Company = workExperience.Company;
             wex.Description = workExperience.Description;
             DbContext.SaveChanges();
             return Json(new { state = "success" });
         }
     }
     return null;
 }