public IActionResult DactiveActiveJob(int JobPostId) { var user = HttpContext.Session.Get <UserViewModel>(Constants.SessionKeyUserInfo); var result = dashboardHandler.DactiveActiveJobs(Convert.ToString(user.UserId), JobPostId); if (result) { return(Json("Job Closed")); } return(Json("Faild to job close")); }