//add order public void AddOrder(Order order) { try { HostingUnit temp = returnor(order.HostingUnitKey); int days = countDaysBetween(order.GuestRequestKey.EntryDate, order.GuestRequestKey.ReleaseDate); if (temp.isAvailable(order.GuestRequestKey.EntryDate, days)) { SendMail(order.GuestRequestKey); } dal.AddOrder(order); } catch (Exception) { throw; } }
//add order public void AddOrder(Order order) { dal.AddOrder(order); }