public static Orders MapToEntity(OrdersWM webModel)
 {
     return(new Orders()
     {
         OrderID = webModel.OrderID,
         UserID = webModel.UserID,
         OrderDate = webModel.OrderDate
     });
 }
示例#2
0
 public void DeleteOrder(OrdersWM webModel)
 {
     try
     {
         _ordersOperations.DeleteOrder(OrdersMapping.MapToEntity(webModel));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }