Exemple #1
0
        public IActionResult Index()
        {
            var position = _positionService.GetAll()
                           .OrderBy(positions => positions.Position)
                           .Select(c => new PositionListingModel

            {
                Position = c.Position
            });
            var model = new PositionIndexModel
            {
                PositionList = position
            };

            return(View(model));
        }