예제 #1
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));
        }
예제 #2
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);
        }
예제 #3
0
        public void UpdateDreamJob(DreamJob DreamJobClient)
        {
            DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();

            drjobdb.UpdateDreamJobById(DreamJobClient);
        }
예제 #4
0
        public void DeleteDreamJobInfo(int?id)
        {
            DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();

            drjobdb.DeleteDreamJobByID(id);
        }