Пример #1
0
        public IActionResult AddOffer([FromBody] OfferDto offerDto)
        {
            itemsService.AddOffer(offerDto,
                                  HttpContext.User.Claims.Where(c => c.Type == ClaimTypes.Name).Select(x => int.Parse(x.Value)).FirstOrDefault());

            return(Ok());
        }