public IHttpActionResult AddCruise(CruiseRequestModel model) { var response = cruiseService.InsertCruise(model.CruiseName, model.ShipId); if (response == null) { return(BadRequest()); } return(Ok(response)); }
public IHttpActionResult UpdateShip(CruiseRequestModel model, [FromUri] int cruiseId) { var response = cruiseService.UpdateCruise(cruiseId, model.CruiseName, model.ShipId); if (response == null) { return(BadRequest()); } return(Ok(response)); }