public void DeteleOrders(List <OrdersWM> webModelList) { try { _ordersOperations.DeleteOrders(OrdersMapping.MapToEntity(webModelList)); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public void AddOrder(OrdersWM webModel) { try { _ordersOperations.AddOrder(OrdersMapping.MapToEntity(webModel)); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public List <OrdersWM> GetAllOrders() { try { return(OrdersMapping.MaptoWM(_ordersOperations.GetAllOrders())); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public List <OrdersWM> FindOrders(Expression <Func <Orders, bool> > predicate) { try { return(OrdersMapping.MaptoWM(_ordersOperations.FindOrders(predicate))); } catch (Exception ex) { throw new Exception(ex.ToString()); } }
public OrdersWM GetOrder(int id) { try { return(OrdersMapping.MaptoWM(_ordersOperations.GetOrder(id))); } catch (Exception ex) { throw new Exception(ex.ToString()); } }