public void UpdateDreamJob(DreamJob DreamJobClient)
 {
     DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();
     drjobdb.UpdateDreamJobById(DreamJobClient);
 }
 public ActionResult CtrlGetDreamJob()
 {
     var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
     var currentUser = manager.FindById(User.Identity.GetUserId());
     int id = currentUser.UserInfo.Id;
     DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();
     return Json(drjobdb.GetDreamJobByID(id), JsonRequestBehavior.AllowGet);
 }
 public void DeleteDreamJobInfo(int? id)
 {
     DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();
     drjobdb.DeleteDreamJobByID(id);
 }
        public void AddDreamJobDetails(DreamJob DreamJobClient)
        {
            var manager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()));
            var currentUser = manager.FindById(User.Identity.GetUserId());
            int id = currentUser.UserInfo.Id;
            DreamJob dj = new DreamJob();
            dj.UserInfoID = id;
            dj.companyName = DreamJobClient.companyName;
            dj.position = DreamJobClient.position;
            dj.startDate = DreamJobClient.startDate;
            dj.description = DreamJobClient.description;

            DreamJobBusinessLayer djBal = new DreamJobBusinessLayer();
            djBal.InsertDreamJobDetails(dj);
        }