public async Task Post(FeedItemRequest value) { var pooper = await m_context.Poopers.FindAsync(value.PooperId); await m_context.FeedItems.AddAsync(value.AsFeedItem(pooper)); await m_context.SaveChangesAsync(); }
public async Task Post(PooperRequest value) { await m_context.Poopers.AddAsync(value.AsPooper()); await m_context.SaveChangesAsync(); }