public IActionResult ActivateUser(int userId) { try { ContextUserViewModel _user = authService.GetLoggedUser(); if (_user == null || !UtilsService.IsAdmin(_user.Profile)) { return(Unauthorized()); } return(Ok(service.ActivateUser(userId))); } catch (Exception) { throw; } }