public IActionResult PrikaziPlate() { List <Plata> plate = reposPlata.GetAll(); var prikazPlata = new PlataViewModel { ListaPlata = plate }; return(View(prikazPlata)); }
public IActionResult EvidentirajPlatu() { List <Uposlenik> uposlenici = reposUposlenici.GetAll(); PlataViewModel plateVM = new PlataViewModel { Uposlenici = uposlenici }; return(View(plateVM)); }
public IActionResult UrediPlatu(int PlataId) { Plata pronadjenaPlata = reposPlata.GetById(PlataId); List <Uposlenik> uposlenici = reposUposlenici.GetAll(); PlataViewModel plataVM = new PlataViewModel() { Plata = pronadjenaPlata, Uposlenici = uposlenici }; return(View(plataVM)); }