public async Task <ActionResult <FeedViewModel> > CreateFeedAsync([FromQuery] CreateFeedRequest request)
        {
            request.Photos = Request.Form.Files;
            var createdEntity = await _feedService.AddAsync(request);

            return(Created(string.Format(CreateEntityPattern, RoutePattern, createdEntity.Id), createdEntity));
        }
Beispiel #2
0
        public async Task <IActionResult> AddToCollection(int feedCollectionId, int userId, string feedUrl)
        {
            var response = await _feedService.AddAsync(feedCollectionId, userId, feedUrl);

            return(_feedResponseCreator.ResponseForCreate(response, feedCollectionId, userId, feedUrl));
        }