Example #1
0
        public IActionResult Index()
        {
            UputnicaIndexVM model = new UputnicaIndexVM {
                Rows = _context.Uputnica.Select(x => new UputnicaIndexVM.Row {
                    Uputio             = x.DatumUputnice.ToString("dd.MM.yyyy") + " | Dr." + x.UputioLjekar.Ime,
                    Pacijent           = x.Pacijent.Ime,
                    DatumEvidentiranja = x.DatumRezultata,
                    UputnicaId         = x.Id,
                    VrstaPretrage      = x.VrstaPretrage.Naziv
                }).ToList()
            };


            return(View("Index", model));
        }
Example #2
0
        public IActionResult Index()
        {
            UputnicaIndexVM model = new UputnicaIndexVM
            {
                Rows = _context.Uputnica.Select(x => new UputnicaIndexVM.Row
                {
                    uputnicaID     = x.Id,
                    uputio         = x.DatumUputnice.ToString("dd.MM.yyyy") + " " + x.UputioLjekar.Ime,
                    pacijent       = x.Pacijent.Ime,
                    vrstaPretrage  = x.VrstaPretrage.Naziv,
                    datumRezultata = x.DatumRezultata.ToString()
                }).ToList()
            };

            return(View("Index", model));
        }