Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public ActionResult Create()
  2. {
  3. ViewBag.OfPostUsr_ID = HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>().FindByName(User.Identity.Name).Email;
  4. ViewBag.OfPostOf_ID = new SelectList(db.OfertaLaboral, "Of_ID", "Of_Titulo");
  5.  
  6. var userID = User.Identity.GetUserId();
  7.  
  8.  
  9. var lista2 = (from u in db.OfertaLaboral
  10. from a in db.DatosUsuario
  11. from d in db.OfertaPostulante
  12. where u.Of_Edu == a.Educ_Sup
  13. where u.Of_Mov == a.Mov_Red
  14. where u.Of_Jornada == a.Jorn_Comp
  15. where u.Of_Estado == a.Tipo_trabajo
  16. where a.DatosUser_ID == userID
  17.  
  18. orderby u.Of_FechaIn descending
  19. select u);
  20.  
  21.  
  22. ViewBag.ListaCondicion = lista2.ToList();
  23. return View();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement