public IEnumerable <HostingUnit> GetAllHostingUnits() { try { var units = dal.GetHostingUnits(x => x is DO.HostingUnit).Select(x => Converters.Conv_DO_To_BO(x)); return(units); } catch (Exception e) { throw e; } }
/// <summary> /// the func return list of orders by the guest request key /// </summary> /// <param name="key"></param> /// <returns></returns> public IEnumerable <Order> GetOrdersByRequestKey(int key) { try { var orders = dal.GetOrders(x => x.GuestRequestKey == key).Select(x => Converters.Conv_DO_To_BO(x)); return(orders); } catch (Exception e) { throw e; } }
public IEnumerable <GuestRequest> GetGuestRequests(int id) { try { var requests = dal.GetGuestRequests(x => x.ClientId == id).Select(x => Converters.Conv_DO_To_BO(x)); return(requests); } catch (Exception e) { throw e; } }
/// <summary> /// the funk return all guest request /// </summary> /// <returns></returns> public IEnumerable <GuestRequest> GetGuestRequests() { var requests = dal.GetGuestRequests().Select(x => Converters.Conv_DO_To_BO(x)); return(requests); }
public GuestRequest GetRequest(int key) { return(Converters.Conv_DO_To_BO(dal.GetGuestRequest(key))); }
public Person GetPerson(int id) { return(Converters.Conv_DO_To_BO(dal.GetPerson(id))); }