Example #1
0
        public ActionResult <UserDetailVm> ViewUser(string id)
        {
            var model = _adminPanelService.GetUserDetails(id);

            if (model == null)
            {
                return(NotFound());
            }
            return(Ok(model));
        }
Example #2
0
        public IActionResult ViewUser(string id)
        {
            var model = _adminPanelService.GetUserDetails(id);

            return(View(model));
        }