public JsonResult GetShipById(string id) { ShipBL shipBL = new ShipBL(); Ship ship = new Ship(); ship = shipBL.GetShipDetailsById(Convert.ToInt32(id)); return(Json(ship, JsonRequestBehavior.AllowGet)); }
public JsonResult GetIMONumberByShip(string shipId) { ApproverMaster approver = new ApproverMaster(); ShipBL shipBL = new ShipBL(); Ship ship = new Ship(); ship = shipBL.GetShipDetailsById(Convert.ToInt32(shipId)); approver.VesselIMONumber = ship.IMONumber; approver.Ship = ship; return(Json(approver, JsonRequestBehavior.AllowGet)); }