Exemplo n.º 1
0
        public ActionResult <ListUsersForListVm> Index()
        {
            var model = _adminPanelService.GetAllUsers();

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            var model = _adminPanelService.GetAllUsers();

            return(View(model));
        }