public void insertGuest(int id, string name, string address, int phone, int roomid, DateTime datein, DateTime dateout) { if (string.IsNullOrWhiteSpace(id.ToString())) { throw new Exception("Id is not allow null"); } guestDAO.Add(new Guest { id = id, name = name, address = address, phone = phone, roomid = roomid, datein = datein, dateout = dateout }); }
public void insertGuest(int id, string name, string address, int phone, int roomid, DateTime datein, DateTime dateout) { guestDAO.Add(new Guest { id = id, name = name, address = address, phone = phone, roomid = roomid, datein = datein, dateout = dateout }); }