Esempio n. 1
0
        public async Task <IActionResult> FollowUsers([FromBody] IList <Guid> userIds)
        {
            var ext          = new OfferLocker.Business.Extensions(_httpContextAccessor);
            var loggedUserId = ext.GetLoggedUserId();

            if (loggedUserId == null)
            {
                return(BadRequest("in need of token"));
            }

            await _followService.FollowUsers(Guid.Parse(loggedUserId), userIds);

            return(Ok());
        }