コード例 #1
0
 public void UpdateDreamJob(DreamJob DreamJobClient)
 {
     DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();
     drjobdb.UpdateDreamJobById(DreamJobClient);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void DeleteDreamJobInfo(int? id)
 {
     DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();
     drjobdb.DeleteDreamJobByID(id);
 }
コード例 #4
0
        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);
        }