Beispiel #1
0
        // GET: Client
        public ActionResult Index()
        {
            string userID = User.Identity.GetUserId();

            User user = new User
            {
                UserId  = userID,
                Name    = User.Identity.Name,
                Surname = User.Identity.Name,
            };

            UserDataService userDataService = new UserDataService();

            userDataService.AddNotExisting(userID, user);


            DeviceDataService deviceDataService = new DeviceDataService();

            var deviceList = deviceDataService.GetDevicesByUserId(userID);

            return(View(deviceList));
        }