/// <summary> /// This Method will Create New Passenger /// </summary> /// <param name="req">req is an object type of Passenger class</param> /// <returns>this will return Passengers object</returns> public Passengers CreatePassenger(Passenger req) { Passengers _passenger = new Passengers(); _passenger.loginAccount = req.loginAccount; _passenger.name = req.name; _passenger.bDay = req.bDay; _passenger.bMonth = req.bMonth; _passenger.bYear = req.bYear; _passenger.sex = req.sex; _passenger.birthPf = req.birthPreferance; _passenger.foodPf = req.foodPreferance; _passenger.idCardTypeId = req.idCardTypeId; _passenger.idCardNumber = req.idCardNumber; _passenger.senior = req.senior; _passengerRepository.Add(_passenger); _passengerRepository.Commit(); return(_passenger); }