public IActionResult RegisterForTwoDayTrip([FromBody] TwoDayTripRegistrants reg) { if (_service.RegisterForTwoDayTrip(reg)) { return(Ok(reg)); } else { return(BadRequest("there is a error")); } }
public IActionResult RegisterForTwoDayTrip([FromBody] TwoDayTripRegistrants reg) { if (_service.RegisterForTwoDayTrip(reg)) { return(Ok(reg)); } else { return(BadRequest("there is a error")); } }