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