public ActionResult jobsetting(int id) { var roleId = _dataContext.tbl_Roles.Where(s => s.RoleName == "Employee").FirstOrDefault(); var userDetails = _dataContext.GET_JOB_EMPLOYEE(id, clsSession.UserID).Where(s => s.Fk_CityId == clsSession.CityID && s.Pk_UserId != clsSession.UserID && s.Fk_RoleId == roleId.Pk_RoleId).ToList(); TempData["JobID"] = id; return(View(userDetails)); }
public ActionResult jobproposals() { var userDetails = _dataContext.GET_JOB_EMPLOYEE(0, clsSession.UserID).ToList().Where((s => (s.EmplyeeFeePaymentStatus == "invitation sent" || s.EmplyeeFeePaymentStatus == "Approved" || s.EmplyeeFeePaymentStatus == "Rejected") && s.toUserId == clsSession.UserID)).ToList(); return(View(userDetails)); }