Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public void UpdateDreamJob(DreamJob DreamJobClient)
        {
            DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();

            drjobdb.UpdateDreamJobById(DreamJobClient);
        }
Ejemplo n.º 4
0
        public void DeleteDreamJobInfo(int?id)
        {
            DreamJobBusinessLayer drjobdb = new DreamJobBusinessLayer();

            drjobdb.DeleteDreamJobByID(id);
        }