Ejemplo n.º 1
0
 public static OrderDetails MapToEntity(OrderDetailsWM webModel)
 {
     return(new OrderDetails()
     {
         OrderDetailID = webModel.OrderDetailID,
         ProductID = webModel.ProductID,
         Quantity = webModel.Quantity
     });
 }
 public void DeleteOrderDetail(OrderDetailsWM webModel)
 {
     try
     {
         _orderDetailsOperations.DeleteOrderDetail(OrderDetailsMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }