public ActionResult MyJobPost() { if (User.IsInRole("Employer")) { var userId = User.Identity.GetUserId(); var allJobsForUser = JobManager.GetUserTickets(userId).ToList(); return(View("Index", allJobsForUser)); } return(View()); }
public ActionResult MyJobPost() { if (User.IsInRole("Employer")) { var userId = User.Identity.GetUserId(); var allJobsForUser = JobManager.GetUserTickets(userId).ToList(); return(View("Index", allJobsForUser)); } return(View()); }