常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> AddListingOfTickets([FromBody] ListingResource listing) { var ticket = new Ticket { EventId = listing.EventId, SellerId = userManager.GetUserId(User), Price = listing.Price, SellerNotes = listing.Notes, Status = TicketStatuses.Selling }; await ticketsService.AddListingWithTickets(ticket, listing.Amount, listing.ListingName); return(Ok()); }