Esempio n. 1
0
        public IActionResult Index()
        {
            var uplateModels = _service.GetAll();

            var listingUplate = uplateModels
                                .Select(result => new UplataIndexListingModel
            {
                Id          = result.Id,
                DatumUplate = result.DatumUplate,
                Iznos       = result.Iznos
            });

            var model = new UplataIndexModel()
            {
                Uplate = listingUplate
            };

            return(View(model));
        }