public IActionResult Booked([FromBodyAttribute] BookedTickets Request) { if (!ModelState.IsValid) { return(Ok(new Application_ResponseWrapper() { ResponseCode = "1000", ResponseMessage = "failed", Status = "Error in Api while insert in BookedTickets ", ResponseResult = "Request is Invalid" })); } try { IBookedTicketsRepository _BookedTicket = new BookedTicketsRepository(_applicationDbContext); _BookedTicket.Add(Request); _BookedTicket.Commit(); return(Ok(new Application_ResponseWrapper() { ResponseCode = "0", ResponseMessage = "success", Status = "success", ResponseResult = "Booked Successfully" })); } catch (Exception e) { return(Ok(new Application_ResponseWrapper() { ResponseCode = "1000", ResponseMessage = "failed", Status = "Error in Api while insert in BookedTickets ", ResponseResult = e })); } }
public IActionResult GetBookedTicketDetail([FromBodyAttribute] BookedTickets Request) { // GetTicketBookingDetail return(Ok()); }