Example #1
0
        public Task <IEnumerable <UnitViewModel> > Get()
        {
            int userId = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier));

            return(armyService.GetUnitsAsync(userId));
        }